Function#

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

Provides the function element.

Methods

Function.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

Function.get(entry)

Get an item from an element.

Function.has_children()

Return wether the element has children.

Function.print_tree()

Print the tree.

Function.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

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

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

Function.types_repr()

Return the string types.

Attributes

Function.added

Has the revision flag added.

Function.any_isalnum

Returns True if any characters are alphanumeric.

Function.children

Children of the tree.

Function.content

Text content.

Function.id

ID of the element.

Function.next_elem

Next element.

Function.prev_elem

Previous element.

Function.raw

Raw string of the element.

Function.tag

Element tag.

Function.tail

Tail of the element as a string.

Function.text_content

Text content.

Function.title

Element title.

Function.tostring

Attributes of the element as a dictionary.