Note#

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

Provides the note element.

Methods

Note.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

Note.get(entry)

Get an item from an element.

Note.has_children()

Return wether the element has children.

Note.print_tree()

Print the tree.

Note.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

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

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

Note.types_repr()

Return the string types.

Attributes

Note.added

Has the revision flag added.

Note.any_isalnum

Returns True if any characters are alphanumeric.

Note.children

Children of the tree.

Note.content

Text content.

Note.id

ID of the element.

Note.next_elem

Next element.

Note.prev_elem

Previous element.

Note.raw

Raw string of the element.

Note.tag

Element tag.

Note.tail

Tail of the element as a string.

Note.text_content

Text content.

Note.title

Element title.

Note.tostring

Attributes of the element as a dictionary.