xml.dom
index
/usr/local/lib/python2.3/xml/dom/__init__.py

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.

 
Package Contents
       
NodeFilter
domreg
expatbuilder
minicompat
minidom
pulldom
xmlbuilder

 
Classes
       
exceptions.Exception
DOMException
DomstringSizeErr
HierarchyRequestErr
IndexSizeErr
InuseAttributeErr
InvalidAccessErr
InvalidCharacterErr
InvalidModificationErr
InvalidStateErr
NamespaceErr
NoDataAllowedErr
NoModificationAllowedErr
NotFoundErr
NotSupportedErr
SyntaxErr
ValidationErr
WrongDocumentErr
Node
UserDataHandler

 
class DOMException(exceptions.Exception)
    Abstract base class for DOM exceptions.
Exceptions with specific codes are specializations of this class.
 
  Methods defined here:
__init__(self, *args, **kw)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class DomstringSizeErr(DOMException)
    
Method resolution order:
DomstringSizeErr
DOMException
exceptions.Exception

Data and other attributes defined here:
code = 2

Methods inherited from DOMException:
__init__(self, *args, **kw)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class HierarchyRequestErr(DOMException)
    
Method resolution order:
HierarchyRequestErr
DOMException
exceptions.Exception

Data and other attributes defined here:
code = 3

Methods inherited from DOMException:
__init__(self, *args, **kw)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class IndexSizeErr(DOMException)
    
Method resolution order:
IndexSizeErr
DOMException
exceptions.Exception

Data and other attributes defined here:
code = 1

Methods inherited from DOMException:
__init__(self, *args, **kw)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class InuseAttributeErr(DOMException)
    
Method resolution order:
InuseAttributeErr
DOMException
exceptions.Exception

Data and other attributes defined here:
code = 10

Methods inherited from DOMException:
__init__(self, *args, **kw)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class InvalidAccessErr(DOMException)
    
Method resolution order:
InvalidAccessErr
DOMException
exceptions.Exception

Data and other attributes defined here:
code = 15

Methods inherited from DOMException:
__init__(self, *args, **kw)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class InvalidCharacterErr(DOMException)
    
Method resolution order:
InvalidCharacterErr
DOMException
exceptions.Exception

Data and other attributes defined here:
code = 5

Methods inherited from DOMException:
__init__(self, *args, **kw)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class InvalidModificationErr(DOMException)
    
Method resolution order:
InvalidModificationErr
DOMException
exceptions.Exception

Data and other attributes defined here:
code = 13

Methods inherited from DOMException:
__init__(self, *args, **kw)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class InvalidStateErr(DOMException)
    
Method resolution order:
InvalidStateErr
DOMException
exceptions.Exception

Data and other attributes defined here:
code = 11

Methods inherited from DOMException:
__init__(self, *args, **kw)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class NamespaceErr(DOMException)
    
Method resolution order:
NamespaceErr
DOMException
exceptions.Exception

Data and other attributes defined here:
code = 14

Methods inherited from DOMException:
__init__(self, *args, **kw)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class NoDataAllowedErr(DOMException)
    
Method resolution order:
NoDataAllowedErr
DOMException
exceptions.Exception

Data and other attributes defined here:
code = 6

Methods inherited from DOMException:
__init__(self, *args, **kw)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class NoModificationAllowedErr(DOMException)
    
Method resolution order:
NoModificationAllowedErr
DOMException
exceptions.Exception

Data and other attributes defined here:
code = 7

Methods inherited from DOMException:
__init__(self, *args, **kw)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class Node
    Class giving the NodeType constants.
 
  Data and other attributes defined here:
ATTRIBUTE_NODE = 2
CDATA_SECTION_NODE = 4
COMMENT_NODE = 8
DOCUMENT_FRAGMENT_NODE = 11
DOCUMENT_NODE = 9
DOCUMENT_TYPE_NODE = 10
ELEMENT_NODE = 1
ENTITY_NODE = 6
ENTITY_REFERENCE_NODE = 5
NOTATION_NODE = 12
PROCESSING_INSTRUCTION_NODE = 7
TEXT_NODE = 3

 
class NotFoundErr(DOMException)
    
Method resolution order:
NotFoundErr
DOMException
exceptions.Exception

Data and other attributes defined here:
code = 8

Methods inherited from DOMException:
__init__(self, *args, **kw)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class NotSupportedErr(DOMException)
    
Method resolution order:
NotSupportedErr
DOMException
exceptions.Exception

Data and other attributes defined here:
code = 9

Methods inherited from DOMException:
__init__(self, *args, **kw)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class SyntaxErr(DOMException)
    
Method resolution order:
SyntaxErr
DOMException
exceptions.Exception

Data and other attributes defined here:
code = 12

Methods inherited from DOMException:
__init__(self, *args, **kw)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class UserDataHandler
    Class giving the operation constants for UserDataHandler.handle().
 
  Data and other attributes defined here:
NODE_CLONED = 1
NODE_DELETED = 3
NODE_IMPORTED = 2
NODE_RENAMED = 4

 
class ValidationErr(DOMException)
    
Method resolution order:
ValidationErr
DOMException
exceptions.Exception

Data and other attributes defined here:
code = 16

Methods inherited from DOMException:
__init__(self, *args, **kw)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
class WrongDocumentErr(DOMException)
    
Method resolution order:
WrongDocumentErr
DOMException
exceptions.Exception

Data and other attributes defined here:
code = 4

Methods inherited from DOMException:
__init__(self, *args, **kw)

Methods inherited from exceptions.Exception:
__getitem__(...)
__str__(...)

 
Data
        DOMSTRING_SIZE_ERR = 2
EMPTY_NAMESPACE = None
EMPTY_PREFIX = None
HIERARCHY_REQUEST_ERR = 3
INDEX_SIZE_ERR = 1
INUSE_ATTRIBUTE_ERR = 10
INVALID_ACCESS_ERR = 15
INVALID_CHARACTER_ERR = 5
INVALID_MODIFICATION_ERR = 13
INVALID_STATE_ERR = 11
NAMESPACE_ERR = 14
NOT_FOUND_ERR = 8
NOT_SUPPORTED_ERR = 9
NO_DATA_ALLOWED_ERR = 6
NO_MODIFICATION_ALLOWED_ERR = 7
SYNTAX_ERR = 12
VALIDATION_ERR = 16
WRONG_DOCUMENT_ERR = 4
XHTML_NAMESPACE = 'http://www.w3.org/1999/xhtml'
XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/'
XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace'