Figure#

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

Provides the figure element.

Methods

Figure.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

Figure.get(entry)

Get an item from an element.

Figure.has_children()

Return wether the element has children.

Figure.print_tree()

Print the tree.

Figure.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

Figure.to_rst([prefix, fcache])

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

Figure.types_repr()

Return the string types.

Attributes

Figure.added

Has the revision flag added.

Figure.any_isalnum

Returns True if any characters are alphanumeric.

Figure.children

Children of the tree.

Figure.content

Text content.

Figure.graphic

First graphic element found in the figure element.

Figure.id

ID of the element.

Figure.next_elem

Next element.

Figure.prev_elem

Previous element.

Figure.raw

Raw string of the element.

Figure.tag

Element tag.

Figure.tail

Tail of the element as a string.

Figure.text_content

Text content.

Figure.title

First title element found in the figure element.

Figure.tostring

Attributes of the element as a dictionary.