Graphic#

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

Provides the graphic element.

Methods

Graphic.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

Graphic.get(entry)

Get an item from an element.

Graphic.has_children()

Return wether the element has children.

Graphic.print_tree()

Print the tree.

Graphic.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

Graphic.to_rst(fcache[, prefix])

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

Graphic.types_repr()

Return the string types.

Attributes

Graphic.added

Has the revision flag added.

Graphic.any_isalnum

Returns True if any characters are alphanumeric.

Graphic.children

Children of the tree.

Graphic.content

Text content.

Graphic.entityref

Value of the entityref parameter contained in the graphic element.

Graphic.id

ID of the element.

Graphic.next_elem

Next element.

Graphic.prev_elem

Previous element.

Graphic.raw

Raw string of the element.

Graphic.tag

Element tag.

Graphic.tail

Tail of the element as a string.

Graphic.text_content

Text content.

Graphic.title

Element title.

Graphic.tostring

Attributes of the element as a dictionary.