Structname#

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

Provides the structure name element.

Methods

Structname.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

Structname.get(entry)

Get an item from an element.

Structname.has_children()

Return wether the element has children.

Structname.print_tree()

Print the tree.

Structname.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

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

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

Structname.types_repr()

Return the string types.

Attributes

Structname.added

Has the revision flag added.

Structname.any_isalnum

Returns True if any characters are alphanumeric.

Structname.children

Children of the tree.

Structname.content

Text content.

Structname.id

ID of the element.

Structname.next_elem

Next element.

Structname.prev_elem

Previous element.

Structname.raw

Raw string of the element.

Structname.tag

Element tag.

Structname.tail

Tail of the element as a string.

Structname.text_content

Text content.

Structname.title

Element title.

Structname.tostring

Attributes of the element as a dictionary.