module documentation
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.
Interface |
|
Interface to XML element nodes. |
Class |
|
Represents an XML element node. |
Class |
|
Undocumented |
Class |
|
Convenience object for tracking namespace declarations. |
Class |
|
Marker class for pre-serialized XML in the DOM. |
Class |
|
Undocumented |
Exception |
|
Exception thrown when a parsing error occurs |
Function | element |
Preferred method to construct an ElementStream |
Function | escape |
Escape text to proper XML form, per section 2.3 in the XML specification. |
Function | generate |
Filters Element items in a list with matching name, regardless of URI. |
Function | generate |
Filters Element items in a list with matching name and URI. |
Function | generate |
Filters items in a list by class |
Function | unescape |
Undocumented |
Constant | G |
Undocumented |
Class | _ |
Internal class which serializes an Element tree into a buffer |
Function | _split |
Internal method for splitting a prefixed Element name into its respective parts |
Preferred method to construct an ElementStream
Uses Expat-based stream if available, and falls back to Sux if necessary.
Escape text to proper XML form, per section 2.3 in the XML specification.
Parameters | |
text:str | Text to escape |
isattrib:bool | Triggers escaping of characters necessary for use as attribute values |