ComputerOutput#

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

Provides the computer output element.

Methods

ComputerOutput.find(_type[, terms])

Find the first type matching a given type string.

ComputerOutput.find_all(_type[, recursive, ...])

Find all types matching a given type string.

ComputerOutput.get(entry)

Get an item from an element.

ComputerOutput.has_children()

Return wether the element has children.

ComputerOutput.print_tree()

Print the tree.

ComputerOutput.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

ComputerOutput.to_rst([prefix])

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

ComputerOutput.types_repr()

Return the string types.

Attributes

ComputerOutput.added

Has the revision flag added.

ComputerOutput.any_isalnum

Returns True if any characters are alphanumeric.

ComputerOutput.children

Children of the tree.

ComputerOutput.content

Text content.

ComputerOutput.id

ID of the element.

ComputerOutput.next_elem

Next element.

ComputerOutput.prev_elem

Previous element.

ComputerOutput.raw

Raw string of the element.

ComputerOutput.tag

Element tag.

ComputerOutput.tail

Tail of the element as a string.

ComputerOutput.text_content

Text content.

ComputerOutput.title

Element title.

ComputerOutput.tostring

Attributes of the element as a dictionary.