Package xml :: Package dom
[hide private]
[frames] | no frames]

Package 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.

Submodules [hide private]

Classes [hide private]
Node
Class giving the NodeType constants.
DOMException
Abstract base class for DOM exceptions.
IndexSizeErr
DomstringSizeErr
HierarchyRequestErr
WrongDocumentErr
InvalidCharacterErr
NoDataAllowedErr
NoModificationAllowedErr
NotFoundErr
NotSupportedErr
InuseAttributeErr
InvalidStateErr
SyntaxErr
InvalidModificationErr
NamespaceErr
InvalidAccessErr
ValidationErr
UserDataHandler
Class giving the operation constants for UserDataHandler.handle().
Variables [hide private]
  INDEX_SIZE_ERR = 1
  DOMSTRING_SIZE_ERR = 2
  HIERARCHY_REQUEST_ERR = 3
  WRONG_DOCUMENT_ERR = 4
  INVALID_CHARACTER_ERR = 5
  NO_DATA_ALLOWED_ERR = 6
  NO_MODIFICATION_ALLOWED_ERR = 7
  NOT_FOUND_ERR = 8
  NOT_SUPPORTED_ERR = 9
  INUSE_ATTRIBUTE_ERR = 10
  INVALID_STATE_ERR = 11
  SYNTAX_ERR = 12
  INVALID_MODIFICATION_ERR = 13
  NAMESPACE_ERR = 14
  INVALID_ACCESS_ERR = 15
  VALIDATION_ERR = 16
  XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace'
  XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/'
  XHTML_NAMESPACE = 'http://www.w3.org/1999/xhtml'
  EMPTY_NAMESPACE = None
  EMPTY_PREFIX = None

Imports: getDOMImplementation, registerDOMImplementation, NodeFilter, domreg, expatbuilder, minicompat, minidom, pulldom, xmlbuilder