Variablelist#

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

Provides the variable list.

Methods

Variablelist.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

Variablelist.get(entry)

Get an item from an element.

Variablelist.has_children()

Return wether the element has children.

Variablelist.print_tree()

Print the tree.

Variablelist.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

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

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

Variablelist.types_repr()

Return the string types.

Attributes

Variablelist.added

Has the revision flag added.

Variablelist.any_isalnum

Returns True if any characters are alphanumeric.

Variablelist.children

Children of the tree.

Variablelist.content

Text content.

Variablelist.id

ID of the element.

Variablelist.next_elem

Next element.

Variablelist.prev_elem

Previous element.

Variablelist.raw

Raw string of the element.

Variablelist.tag

Element tag.

Variablelist.tail

Tail of the element as a string.

Variablelist.terms

List containing the terms of the element.

Variablelist.text_content

Text content.

Variablelist.title

Element title.

Variablelist.tostring

Attributes of the element as a dictionary.