ListItem#

class pyconverter.xml2py.ast_tree.ListItem(element, parse_children=True)#

Provides the list item element.

Methods

ListItem.find(_type[, terms])

Find the first type matching a given type string.

ListItem.find_all(_type[, recursive, terms])

Find all types matching a given type string.

ListItem.get(entry)

Get an item from an element.

ListItem.has_children()

Return wether the element has children.

ListItem.print_tree()

Print the tree.

ListItem.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

ListItem.to_rst([prefix, links, base_url, ...])

Return a string to enable converting the element to an RST format.

ListItem.types_repr()

Return the string types.

Attributes

ListItem.added

Has the revision flag added.

ListItem.any_isalnum

Returns True if any characters are alphanumeric.

ListItem.children

Children of the tree.

ListItem.content

Text content.

ListItem.id

ID of the element.

ListItem.next_elem

Next element.

ListItem.prev_elem

Previous element.

ListItem.raw

Raw string of the element.

ListItem.tag

Element tag.

ListItem.tail

Tail of the element as a string.

ListItem.text_content

Text content.

ListItem.title

Element title.

ListItem.tostring

Attributes of the element as a dictionary.