Emphasis#

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

Provides the emphasis element.

Methods

Emphasis.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

Emphasis.get(entry)

Get an item from an element.

Emphasis.has_children()

Return wether the element has children.

Emphasis.print_tree()

Print the tree.

Emphasis.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

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

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

Emphasis.types_repr()

Return the string types.

Attributes

Emphasis.added

Has the revision flag added.

Emphasis.any_isalnum

Returns True if any characters are alphanumeric.

Emphasis.children

Children of the tree.

Emphasis.content

Text content.

Emphasis.id

ID of the element.

Emphasis.next_elem

Next element.

Emphasis.prev_elem

Previous element.

Emphasis.raw

Raw string of the element.

Emphasis.role

Return the role parameter value contained in the Emphasis element.

Emphasis.tag

Element tag.

Emphasis.tail

Tail of the element as a string.

Emphasis.text_content

Text content.

Emphasis.title

Element title.

Emphasis.tostring

Attributes of the element as a dictionary.