Home | Top | ← | → | Overview | Module | Class | Index | Help |
|
About |
---|
|
||||
Classes | |
SafeXMLParser An XMLParser that forbids entities processing. |
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Function Details |
Serialize an Element tree to a string. Tab characters are replaced by whitespaces. :param elem: the Element instance. :param namespaces: is an optional mapping from namespace prefix to URI. Provided namespaces are registered before serialization. :param indent: the base line indentation. :param max_lines: if truncate serialization after a number of lines (default: do not truncate). :param spaces_for_tab: number of spaces for replacing tab characters (default is 4). :param xml_declaration: if set to `True` inserts the XML declaration at the head. :return: a Unicode string.
|
Creates an iterator for the element and its subelements that yield elements and paths. If tag is not `None` or '*', only elements whose matches tag are returned from the iterator. :param elem: the element to iterate. :param tag: tag filtering. :param path: the current path, '.' for default. :param add_position: add context position to child elements that appear multiple times. :param namespaces: is an optional mapping from namespace prefix to URI.
|
Returns the XPath path from *root* to descendant *elem* element. :param elem: the descendant element. :param root: the root element. :param namespaces: is an optional mapping from namespace prefix to URI. :param relative: returns a relative path. :param add_position: add context position to child elements that appear multiple times. :return: An XPath expression or `None` if *elem* is not a descendant of *root*.
|
Tests the equality of two XML Element trees. :param elem: the master Element tree, reference for namespace mapping. :param other: the other Element tree that has to be compared. :param strict: asserts strictly equality. `True` for default. :param skip_comments: Skip comments for e :raise: an AssertionError containing information about first difference encountered.
|
Home | Top | ← | → | Overview | Module | Class | Index | Help |
|
About |
---|
Copyright(C) 2019 Arno-Can Uestuensoez @Ingenieurbuero Arno-Can Uestuensoez | https://arnocan.wordpress.com |
Generated by Epydoc 4.0.4 / Python-3.8 / fedora27 on Fri Dec 13 15:25:22 2019 | http://epydoc.sourceforge.net |