THead#

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

Provides the thead element.

Methods

THead.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

THead.get(entry)

Get an item from an element.

THead.has_children()

Return wether the element has children.

THead.print_tree()

Print the tree.

THead.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

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

Return a list and the length of the list for converting the element to an RST format.

THead.types_repr()

Return the string types.

Attributes

THead.added

Has the revision flag added.

THead.any_isalnum

Returns True if any characters are alphanumeric.

THead.children

Children of the tree.

THead.content

Text content.

THead.id

ID of the element.

THead.next_elem

Next element.

THead.prev_elem

Previous element.

THead.raw

Raw string of the element.

THead.rows

Return all row elements found in the THead element.

THead.tag

Element tag.

THead.tail

Tail of the element as a string.

THead.text_content

Text content.

THead.title

Element title.

THead.tostring

Attributes of the element as a dictionary.