InformalExample#

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

Provides the informal example element.

Methods

InformalExample.find(_type[, terms])

Find the first type matching a given type string.

InformalExample.find_all(_type[, recursive, ...])

Find all types matching a given type string.

InformalExample.get(entry)

Get an item from an element.

InformalExample.has_children()

Return wether the element has children.

InformalExample.print_tree()

Print the tree.

InformalExample.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

InformalExample.to_rst([prefix, links, ...])

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

InformalExample.types_repr()

Return the string types.

Attributes

InformalExample.added

Has the revision flag added.

InformalExample.any_isalnum

Returns True if any characters are alphanumeric.

InformalExample.children

Children of the tree.

InformalExample.content

Text content.

InformalExample.id

ID of the element.

InformalExample.next_elem

Next element.

InformalExample.prev_elem

Previous element.

InformalExample.raw

Raw string of the element.

InformalExample.tag

Element tag.

InformalExample.tail

Tail of the element as a string.

InformalExample.text_content

Text content.

InformalExample.title

Element title.

InformalExample.tostring

Attributes of the element as a dictionary.