IndexTerm#

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

Provides the index term element.

Methods

IndexTerm.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

IndexTerm.get(entry)

Get an item from an element.

IndexTerm.has_children()

Return wether the element has children.

IndexTerm.print_tree()

Print the tree.

IndexTerm.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

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

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

IndexTerm.types_repr()

Return the string types.

Attributes

IndexTerm.added

Has the revision flag added.

IndexTerm.any_isalnum

Returns True if any characters are alphanumeric.

IndexTerm.children

Children of the tree.

IndexTerm.content

Text content.

IndexTerm.id

ID of the element.

IndexTerm.next_elem

Next element.

IndexTerm.prev_elem

Previous element.

IndexTerm.raw

Raw string of the element.

IndexTerm.tag

Element tag.

IndexTerm.tail

Tail of the element as a string.

IndexTerm.text_content

Text content.

IndexTerm.title

Element title.

IndexTerm.tostring

Attributes of the element as a dictionary.