Member#

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

Provides the member element for a simple itemized list.

Methods

Member.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

Member.get(entry)

Get an item from an element.

Member.has_children()

Return wether the element has children.

Member.print_tree()

Print the tree.

Member.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

Member.to_rst([prefix, links, base_url, fcache])

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

Member.types_repr()

Return the string types.

Attributes

Member.added

Has the revision flag added.

Member.any_isalnum

Returns True if any characters are alphanumeric.

Member.children

Children of the tree.

Member.content

Text content.

Member.id

ID of the element.

Member.next_elem

Next element.

Member.prev_elem

Previous element.

Member.raw

Raw string of the element.

Member.tag

Element tag.

Member.tail

Tail of the element as a string.

Member.text_content

Text content.

Member.title

Element title.

Member.tostring

Attributes of the element as a dictionary.