BlockQuote#

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

Provides the block quote element.

Methods

BlockQuote.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

BlockQuote.get(entry)

Get an item from an element.

BlockQuote.has_children()

Return wether the element has children.

BlockQuote.print_tree()

Print the tree.

BlockQuote.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

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

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

BlockQuote.types_repr()

Return the string types.

Attributes

BlockQuote.added

Has the revision flag added.

BlockQuote.any_isalnum

Returns True if any characters are alphanumeric.

BlockQuote.children

Children of the tree.

BlockQuote.content

Text content.

BlockQuote.id

ID of the element.

BlockQuote.next_elem

Next element.

BlockQuote.prev_elem

Previous element.

BlockQuote.raw

Raw string of the element.

BlockQuote.tag

Element tag.

BlockQuote.tail

Tail of the element as a string.

BlockQuote.text_content

Text content.

BlockQuote.title

Element title.

BlockQuote.tostring

Attributes of the element as a dictionary.