RefSection#

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

Provides the reference section element.

Methods

RefSection.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

RefSection.get(entry)

Get an item from an element.

RefSection.has_children()

Return wether the element has children.

RefSection.print_tree()

Print the tree.

RefSection.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

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

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

RefSection.types_repr()

Return the string types.

Attributes

RefSection.added

Has the revision flag added.

RefSection.any_isalnum

Returns True if any characters are alphanumeric.

RefSection.children

Children of the tree.

RefSection.content

Text content.

RefSection.id

ID of the element.

RefSection.next_elem

Next element.

RefSection.prev_elem

Previous element.

RefSection.raw

Raw string of the element.

RefSection.tag

Element tag.

RefSection.tail

Tail of the element as a string.

RefSection.text_content

Text content.

RefSection.title

Element title.

RefSection.tostring

Attributes of the element as a dictionary.