FileName#

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

Provides the filename element.

Methods

FileName.find(_type[, terms])

Find the first type matching a given type string.

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

Find all types matching a given type string.

FileName.get(entry)

Get an item from an element.

FileName.has_children()

Return wether the element has children.

FileName.print_tree()

Print the tree.

FileName.rec_find(_type[, terms])

Find the first type matching a given type string recursively.

FileName.to_rst([prefix])

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

FileName.types_repr()

Return the string types.

Attributes

FileName.added

Has the revision flag added.

FileName.any_isalnum

Returns True if any characters are alphanumeric.

FileName.children

Children of the tree.

FileName.content

Text content.

FileName.id

ID of the element.

FileName.next_elem

Next element.

FileName.prev_elem

Previous element.

FileName.raw

Raw string of the element.

FileName.tag

Element tag.

FileName.tail

Tail of the element as a string.

FileName.text_content

Text content.

FileName.title

Element title.

FileName.tostring

Attributes of the element as a dictionary.