Thexml.dom contains the following functions:
None. If it is notNone, imports the correspondingmodule and returns aDOMImplementation object if the importsucceeds. If no name is given, and if the environment variablePYTHON_DOM is set, this variable is used to find theimplementation.If name is not given, this examines the available implementations tofind one with the required feature set. If no implementation can befound, raise anImportError. The features list must be asequence of(feature,version) pairs which arepassed to thehasFeature() method on availableDOMImplementation objects.
Some convenience constants are also provided:
xml, as defined byNamespaces in XML (section 4).New in version 2.2.In addition,xml.dom contains a baseNode class andthe DOM exception classes. TheNode class provided by thismodule does not implement any of the methods or attributes defined bythe DOM specification; concrete DOM implementations must providethose. TheNode class provided as part of this module doesprovide the constants used for thenodeType attribute onconcreteNode objects; they are located within the classrather than at the module level to conform with the DOMspecifications.
| Python Library Reference |