Title#

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

Provides the title element.

Methods

Title.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

Title.get(entry)

Get an item from an element.

Title.has_children()

Return wether the element has children.

Title.print_tree()

Print the tree.

Title.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

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

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

Title.types_repr()

Return the string types.

Attributes

Title.added

Has the revision flag added.

Title.any_isalnum

Returns True if any characters are alphanumeric.

Title.children

Children of the tree.

Title.content

Text content.

Title.id

ID of the element.

Title.next_elem

Next element.

Title.prev_elem

Previous element.

Title.raw

Raw string of the element.

Title.tag

Element tag.

Title.tail

Tail of the element as a string.

Title.text_content

Text content.

Title.title

Element title.

Title.tostring

Attributes of the element as a dictionary.