Row#

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

Provides the row element.

Methods

Row.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

Row.get(entry)

Get an item from an element.

Row.has_children()

Return wether the element has children.

Row.print_tree()

Print the tree.

Row.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

Row.to_rst([prefix, links, base_url, fcache])

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

Row.to_rst_list([prefix, links, base_url])

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

Row.types_repr()

Return the string types.

Attributes

Row.added

Has the revision flag added.

Row.any_isalnum

Returns True if any characters are alphanumeric.

Row.children

Children of the tree.

Row.content

Text content.

Row.entry

Return all entry elements found in the row element.

Row.id

ID of the element.

Row.next_elem

Next element.

Row.prev_elem

Previous element.

Row.raw

Raw string of the element.

Row.tag

Element tag.

Row.tail

Tail of the element as a string.

Row.text_content

Text content.

Row.title

Element title.

Row.tostring

Attributes of the element as a dictionary.