XRef#

class pyconverter.xml2py.ast_tree.XRef(element)#

Provides the cross reference element.

Methods

XRef.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

XRef.get(entry)

Get an item from an element.

XRef.has_children()

Return wether the element has children.

XRef.print_tree()

Print the tree.

XRef.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

XRef.to_rst([prefix])

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

XRef.types_repr()

Return the string types.

Attributes

XRef.added

Has the revision flag added.

XRef.any_isalnum

Returns True if any characters are alphanumeric.

XRef.children

Children of the tree.

XRef.content

Text content.

XRef.id

ID of the element.

XRef.linkend

Link.

XRef.next_elem

Next element.

XRef.prev_elem

Previous element.

XRef.raw

Raw string of the element.

XRef.tag

Element tag.

XRef.tail

Tail of the element as a string.

XRef.text_content

Text content.

XRef.title

Element title.

XRef.tostring

Attributes of the element as a dictionary.