Table#

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

Provides the table element

Methods

Table.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

Table.get(entry)

Get an item from an element.

Table.has_children()

Return wether the element has children.

Table.print_tree()

Print the tree.

Table.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

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

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

Table.types_repr()

Return the string types.

Attributes

Table.added

Has the revision flag added.

Table.any_isalnum

Returns True if any characters are alphanumeric.

Table.children

Children of the tree.

Table.content

Text content.

Table.id

ID of the element.

Table.next_elem

Next element.

Table.prev_elem

Previous element.

Table.raw

Raw string of the element.

Table.tag

Element tag.

Table.tail

Tail of the element as a string.

Table.text_content

Text content.

Table.tgroup

TGroup.

Table.title

Table title.

Table.tostring

Attributes of the element as a dictionary.