xml.dom
¶
W3C Document Object Model implementation for Python.
The Python mapping of the Document Object Model is documented in the Python Library Reference in the section on the xml.dom package.
This package contains the following modules:
- minidom – A simple implementation of the Level 1 DOM with namespace
- support added (based on the Level 2 specification) and other minor Level 2 functionality.
- pulldom – DOM builder supporting on-demand tree-building for selected
- subtrees of the document.
Functions¶
getDOMImplementation ((name = None, ...) |
Return a suitable DOM implementation. |
registerDOMImplementation (name, factory) |
Register the factory function with the name. |
Classes¶
Node |
Class giving the NodeType constants. |
UserDataHandler |
Class giving the operation constants for UserDataHandler.handle(). |
Exceptions¶
DOMException (*args, **kw) |
Abstract base class for DOM exceptions. |
DomstringSizeErr (*args, **kw) |
|
HierarchyRequestErr (*args, **kw) |
|
IndexSizeErr (*args, **kw) |
|
InuseAttributeErr (*args, **kw) |
|
InvalidAccessErr (*args, **kw) |
|
InvalidCharacterErr (*args, **kw) |
|
InvalidModificationErr (*args, **kw) |
|
InvalidStateErr (*args, **kw) |
|
NamespaceErr (*args, **kw) |
|
NoDataAllowedErr (*args, **kw) |
|
NoModificationAllowedErr (*args, **kw) |
|
NotFoundErr (*args, **kw) |
|
NotSupportedErr (*args, **kw) |
|
SyntaxErr (*args, **kw) |
|
ValidationErr (*args, **kw) |
|
WrongDocumentErr (*args, **kw) |