DOM-like XML processing support.

This module provides support for parsing XML into DOM-like object structures and serializing such structures to an XML string representation, optimized for use in streaming XML applications.

Function escapeToXml Escape text to proper XML form, per section 2.3 in the XML specification.
Function unescapeFromXml Undocumented
Function generateOnlyInterface Filters items in a list by class
Function generateElementsQNamed Filters Element items in a list with matching name and URI.
Function generateElementsNamed Filters Element items in a list with matching name, regardless of URI.
Class SerializedXML Marker class for pre-serialized XML in the DOM.
Class Namespace Convenience object for tracking namespace declarations.
Interface IElement Interface to XML element nodes.
Class Element Represents an XML element node.
Class ParserError Exception thrown when a parsing error occurs
Function elementStream Preferred method to construct an ElementStream
Class SuxElementStream Undocumented
Class ExpatElementStream Undocumented
Function _splitPrefix Internal method for splitting a prefixed Element name into its respective parts
Class _ListSerializer Internal class which serializes an Element tree into a buffer
def _splitPrefix(name): (source)

Internal method for splitting a prefixed Element name into its respective parts

def escapeToXml(text, isattrib=0): (source)

Escape text to proper XML form, per section 2.3 in the XML specification.

ParameterstextText to escape (type: str)
isattribTriggers escaping of characters necessary for use as attribute values (type: bool)
def unescapeFromXml(text): (source)
Undocumented
def generateOnlyInterface(list, int): (source)

Filters items in a list by class

def generateElementsQNamed(list, name, uri): (source)

Filters Element items in a list with matching name and URI.

def generateElementsNamed(list, name): (source)

Filters Element items in a list with matching name, regardless of URI.

def elementStream(): (source)

Preferred method to construct an ElementStream

Uses Expat-based stream if available, and falls back to Sux if necessary.

API Documentation for Twisted, generated by pydoctor at 2018-10-15 19:29:43.