xml.dom.minidom
index
/usr/local/lib/python2.4/xml/dom/minidom.py
Module Docs

minidom.py -- a lightweight DOM implementation.
 
parse("foo.xml")
 
parseString("<foo><bar/></foo>")
 
Todo:
=====
 * convenience methods for getting elements and text.
 * more testing
 * bring some of the writer and linearizer code into conformance with this
        interface
 * SAX 2 namespaces

 
Modules
       
xml.dom.domreg
xml

 
Classes
       
__builtin__.object
ElementInfo
NamedNodeMap(__builtin__.object, xml.dom.minicompat.GetattrMagic)
NamedNodeMap(__builtin__.object, xml.dom.minicompat.GetattrMagic)
ReadOnlySequentialNamedNodeMap(__builtin__.object, xml.dom.minicompat.GetattrMagic)
TypeInfo
xml.dom.Node
Node(xml.dom.Node, xml.dom.minicompat.GetattrMagic)
Attr
Document(Node, xml.dom.xmlbuilder.DocumentLS)
DocumentFragment
Element
xml.dom.minicompat.GetattrMagic
NamedNodeMap(__builtin__.object, xml.dom.minicompat.GetattrMagic)
NamedNodeMap(__builtin__.object, xml.dom.minicompat.GetattrMagic)
Node(xml.dom.Node, xml.dom.minicompat.GetattrMagic)
Attr
Document(Node, xml.dom.xmlbuilder.DocumentLS)
DocumentFragment
Element
ReadOnlySequentialNamedNodeMap(__builtin__.object, xml.dom.minicompat.GetattrMagic)
Childless
CharacterData(Childless, Node)
Text
CDATASection
Comment(Childless, CharacterData)
ProcessingInstruction(Childless, Node)
Identified
DocumentType(Identified, Childless, Node)
Entity(Identified, Node)
Notation(Identified, Childless, Node)
xml.dom.xmlbuilder.DOMImplementationLS
DOMImplementation

 
class Attr(Node)
    
Method resolution order:
Attr
Node
xml.dom.Node
xml.dom.minicompat.GetattrMagic

Methods defined here:
__init__(self, qName, namespaceURI=None, localName=None, prefix=None)
__setattr__(self, name, value)
unlink(self)

Data descriptors defined here:
isId
True if this attribute is an ID.
localName
Namespace-local name of this attribute.
schemaType
Schema type for this attribute.

Data and other attributes defined here:
attributes = None
nodeType = 2
ownerElement = None
specified = False

Methods inherited from Node:
__nonzero__(self)
appendChild(self, node)
cloneNode(self, deep)
getInterface(self, feature)
getUserData(self, key)
hasChildNodes(self)
insertBefore(self, newChild, refChild)
isSameNode(self, other)
isSupported(self, feature, version)
normalize(self)
removeChild(self, oldChild)
replaceChild(self, newChild, oldChild)
setUserData(self, key, data, handler)
toprettyxml(self, indent='\t', newl='\n', encoding=None)
toxml(self, encoding=None)

Data descriptors inherited from Node:
firstChild
First child node, or None.
lastChild
Last child node, or None.

Data and other attributes inherited from Node:
namespaceURI = None
nextSibling = None
ownerDocument = None
parentNode = None
prefix = None
previousSibling = None

Data and other attributes inherited from xml.dom.Node:
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

 
AttributeList = class NamedNodeMap(__builtin__.object, xml.dom.minicompat.GetattrMagic)
    The attribute list is a transient interface to the underlying
dictionaries.  Mutations here will change the underlying element's
dictionary.
 
Ordering is imposed artificially and does not reflect the order of
attributes as found in an input document.
 
 
Method resolution order:
NamedNodeMap
__builtin__.object
xml.dom.minicompat.GetattrMagic

Methods defined here:
__cmp__(self, other)
__delitem__(self, attname_or_tuple)
__getitem__(self, attname_or_tuple)
__getstate__(self)
__init__(self, attrs, attrsNS, ownerElement)
__len__ = _get_length(self)
__setitem__(self, attname, value)
# same as set
__setstate__(self, state)
get(self, name, value=None)
getNamedItem(self, name)
getNamedItemNS(self, namespaceURI, localName)
has_key(self, key)
item(self, index)
items(self)
itemsNS(self)
keys(self)
keysNS(self)
removeNamedItem(self, name)
removeNamedItemNS(self, namespaceURI, localName)
setNamedItem(self, node)
setNamedItemNS(self, node)
values(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
length
Number of nodes in the NamedNodeMap.

 
class CDATASection(Text)
    
Method resolution order:
CDATASection
Text
CharacterData
Childless
Node
xml.dom.Node
xml.dom.minicompat.GetattrMagic

Methods defined here:
writexml(self, writer, indent='', addindent='', newl='')

Data and other attributes defined here:
nodeName = '#cdata-section'
nodeType = 4

Methods inherited from Text:
replaceWholeText(self, content)
splitText(self, offset)

Data descriptors inherited from Text:
isWhitespaceInElementContent
True iff this text node contains only whitespace and is in element content.
wholeText
The text of all logically-adjacent text nodes.

Data and other attributes inherited from Text:
attributes = None

Methods inherited from CharacterData:
__len__ = _get_length(self)
__repr__(self)
__setattr__(self, name, value)
appendData(self, arg)
deleteData(self, offset, count)
insertData(self, offset, arg)
replaceData(self, offset, count, arg)
substringData(self, offset, count)

Data descriptors inherited from CharacterData:
length
Length of the string data.

Methods inherited from Childless:
appendChild(self, node)
hasChildNodes(self)
insertBefore(self, newChild, refChild)
removeChild(self, oldChild)
replaceChild(self, newChild, oldChild)

Data and other attributes inherited from Childless:
childNodes = ()
firstChild = None
lastChild = None

Methods inherited from Node:
__nonzero__(self)
cloneNode(self, deep)
getInterface(self, feature)
getUserData(self, key)
isSameNode(self, other)
isSupported(self, feature, version)
normalize(self)
setUserData(self, key, data, handler)
toprettyxml(self, indent='\t', newl='\n', encoding=None)
toxml(self, encoding=None)
unlink(self)

Data descriptors inherited from Node:
localName
Namespace-local name of this node.

Data and other attributes inherited from Node:
namespaceURI = None
nextSibling = None
ownerDocument = None
parentNode = None
prefix = None
previousSibling = None

Data and other attributes inherited from xml.dom.Node:
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 CharacterData(Childless, Node)
    
Method resolution order:
CharacterData
Childless
Node
xml.dom.Node
xml.dom.minicompat.GetattrMagic

Methods defined here:
__len__ = _get_length(self)
__repr__(self)
__setattr__(self, name, value)
appendData(self, arg)
deleteData(self, offset, count)
insertData(self, offset, arg)
replaceData(self, offset, count, arg)
substringData(self, offset, count)

Data descriptors defined here:
length
Length of the string data.

Methods inherited from Childless:
appendChild(self, node)
hasChildNodes(self)
insertBefore(self, newChild, refChild)
removeChild(self, oldChild)
replaceChild(self, newChild, oldChild)

Data and other attributes inherited from Childless:
attributes = None
childNodes = ()
firstChild = None
lastChild = None

Methods inherited from Node:
__nonzero__(self)
cloneNode(self, deep)
getInterface(self, feature)
getUserData(self, key)
isSameNode(self, other)
isSupported(self, feature, version)
normalize(self)
setUserData(self, key, data, handler)
toprettyxml(self, indent='\t', newl='\n', encoding=None)
toxml(self, encoding=None)
unlink(self)

Data descriptors inherited from Node:
localName
Namespace-local name of this node.

Data and other attributes inherited from Node:
namespaceURI = None
nextSibling = None
ownerDocument = None
parentNode = None
prefix = None
previousSibling = None

Data and other attributes inherited from xml.dom.Node:
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 Childless
    Mixin that makes childless-ness easy to implement and avoids
the complexity of the Node methods that deal with children.
 
  Methods defined here:
appendChild(self, node)
hasChildNodes(self)
insertBefore(self, newChild, refChild)
removeChild(self, oldChild)
replaceChild(self, newChild, oldChild)

Data and other attributes defined here:
attributes = None
childNodes = ()
firstChild = None
lastChild = None

 
class Comment(Childless, CharacterData)
    
Method resolution order:
Comment
Childless
CharacterData
Node
xml.dom.Node
xml.dom.minicompat.GetattrMagic

Methods defined here:
__init__(self, data)
writexml(self, writer, indent='', addindent='', newl='')

Data and other attributes defined here:
nodeName = '#comment'
nodeType = 8

Methods inherited from Childless:
appendChild(self, node)
hasChildNodes(self)
insertBefore(self, newChild, refChild)
removeChild(self, oldChild)
replaceChild(self, newChild, oldChild)

Data and other attributes inherited from Childless:
attributes = None
childNodes = ()
firstChild = None
lastChild = None

Methods inherited from CharacterData:
__len__ = _get_length(self)
__repr__(self)
__setattr__(self, name, value)
appendData(self, arg)
deleteData(self, offset, count)
insertData(self, offset, arg)
replaceData(self, offset, count, arg)
substringData(self, offset, count)

Data descriptors inherited from CharacterData:
length
Length of the string data.

Methods inherited from Node:
__nonzero__(self)
cloneNode(self, deep)
getInterface(self, feature)
getUserData(self, key)
isSameNode(self, other)
isSupported(self, feature, version)
normalize(self)
setUserData(self, key, data, handler)
toprettyxml(self, indent='\t', newl='\n', encoding=None)
toxml(self, encoding=None)
unlink(self)

Data descriptors inherited from Node:
localName
Namespace-local name of this node.

Data and other attributes inherited from Node:
namespaceURI = None
nextSibling = None
ownerDocument = None
parentNode = None
prefix = None
previousSibling = None

Data and other attributes inherited from xml.dom.Node:
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 DOMImplementation(xml.dom.xmlbuilder.DOMImplementationLS)
     Methods defined here:
createDocument(self, namespaceURI, qualifiedName, doctype)
createDocumentType(self, qualifiedName, publicId, systemId)
getInterface(self, feature)
hasFeature(self, feature, version)

Methods inherited from xml.dom.xmlbuilder.DOMImplementationLS:
createDOMBuilder(self, mode, schemaType)
createDOMInputSource(self)
createDOMWriter(self)

Data and other attributes inherited from xml.dom.xmlbuilder.DOMImplementationLS:
MODE_ASYNCHRONOUS = 2
MODE_SYNCHRONOUS = 1

 
class Document(Node, xml.dom.xmlbuilder.DocumentLS)
    
Method resolution order:
Document
Node
xml.dom.Node
xml.dom.minicompat.GetattrMagic
xml.dom.xmlbuilder.DocumentLS

Methods defined here:
__init__(self)
appendChild(self, node)
cloneNode(self, deep)
createAttribute(self, qName)
createAttributeNS(self, namespaceURI, qualifiedName)
createCDATASection(self, data)
createComment(self, data)
createDocumentFragment(self)
createElement(self, tagName)
createElementNS(self, namespaceURI, qualifiedName)
createProcessingInstruction(self, target, data)
createTextNode(self, data)
getElementById(self, id)
getElementsByTagName(self, name)
getElementsByTagNameNS(self, namespaceURI, localName)
importNode(self, node, deep)
isSupported(self, feature, version)
removeChild(self, oldChild)
renameNode(self, n, namespaceURI, name)
unlink(self)
writexml(self, writer, indent='', addindent='', newl='', encoding=None)

Data descriptors defined here:
documentElement
Top-level element of this document.

Data and other attributes defined here:
actualEncoding = None
attributes = None
doctype = None
documentURI = None
encoding = None
errorHandler = None
implementation = <xml.dom.minidom.DOMImplementation instance>
nextSibling = None
nodeName = '#document'
nodeType = 9
nodeValue = None
parentNode = None
previousSibling = None
standalone = None
strictErrorChecking = False
version = None

Methods inherited from Node:
__nonzero__(self)
getInterface(self, feature)
getUserData(self, key)
hasChildNodes(self)
insertBefore(self, newChild, refChild)
isSameNode(self, other)
normalize(self)
replaceChild(self, newChild, oldChild)
setUserData(self, key, data, handler)
toprettyxml(self, indent='\t', newl='\n', encoding=None)
toxml(self, encoding=None)

Data descriptors inherited from Node:
firstChild
First child node, or None.
lastChild
Last child node, or None.
localName
Namespace-local name of this node.

Data and other attributes inherited from Node:
namespaceURI = None
ownerDocument = None
prefix = None

Data and other attributes inherited from xml.dom.Node:
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

Methods inherited from xml.dom.xmlbuilder.DocumentLS:
abort(self)
load(self, uri)
loadXML(self, source)
saveXML(self, snode)

Data and other attributes inherited from xml.dom.xmlbuilder.DocumentLS:
async = False

 
class DocumentFragment(Node)
    
Method resolution order:
DocumentFragment
Node
xml.dom.Node
xml.dom.minicompat.GetattrMagic

Methods defined here:
__init__(self)

Data and other attributes defined here:
attributes = None
nodeName = '#document-fragment'
nodeType = 11
nodeValue = None
parentNode = None

Methods inherited from Node:
__nonzero__(self)
appendChild(self, node)
cloneNode(self, deep)
getInterface(self, feature)
getUserData(self, key)
hasChildNodes(self)
insertBefore(self, newChild, refChild)
isSameNode(self, other)
isSupported(self, feature, version)
normalize(self)
removeChild(self, oldChild)
replaceChild(self, newChild, oldChild)
setUserData(self, key, data, handler)
toprettyxml(self, indent='\t', newl='\n', encoding=None)
toxml(self, encoding=None)
unlink(self)

Data descriptors inherited from Node:
firstChild
First child node, or None.
lastChild
Last child node, or None.
localName
Namespace-local name of this node.

Data and other attributes inherited from Node:
namespaceURI = None
nextSibling = None
ownerDocument = None
prefix = None
previousSibling = None

Data and other attributes inherited from xml.dom.Node:
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 DocumentType(Identified, Childless, Node)
    
Method resolution order:
DocumentType
Identified
Childless
Node
xml.dom.Node
xml.dom.minicompat.GetattrMagic

Methods defined here:
__init__(self, qualifiedName)
cloneNode(self, deep)
writexml(self, writer, indent='', addindent='', newl='')

Data and other attributes defined here:
internalSubset = None
name = None
nodeType = 10
nodeValue = None
publicId = None
systemId = None

Methods inherited from Childless:
appendChild(self, node)
hasChildNodes(self)
insertBefore(self, newChild, refChild)
removeChild(self, oldChild)
replaceChild(self, newChild, oldChild)

Data and other attributes inherited from Childless:
attributes = None
childNodes = ()
firstChild = None
lastChild = None

Methods inherited from Node:
__nonzero__(self)
getInterface(self, feature)
getUserData(self, key)
isSameNode(self, other)
isSupported(self, feature, version)
normalize(self)
setUserData(self, key, data, handler)
toprettyxml(self, indent='\t', newl='\n', encoding=None)
toxml(self, encoding=None)
unlink(self)

Data descriptors inherited from Node:
localName
Namespace-local name of this node.

Data and other attributes inherited from Node:
namespaceURI = None
nextSibling = None
ownerDocument = None
parentNode = None
prefix = None
previousSibling = None

Data and other attributes inherited from xml.dom.Node:
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 Element(Node)
    
Method resolution order:
Element
Node
xml.dom.Node
xml.dom.minicompat.GetattrMagic

Methods defined here:
__init__(self, tagName, namespaceURI=None, prefix=None, localName=None)
__repr__(self)
getAttribute(self, attname)
getAttributeNS(self, namespaceURI, localName)
getAttributeNode(self, attrname)
getAttributeNodeNS(self, namespaceURI, localName)
getElementsByTagName(self, name)
getElementsByTagNameNS(self, namespaceURI, localName)
hasAttribute(self, name)
hasAttributeNS(self, namespaceURI, localName)
hasAttributes(self)
removeAttribute(self, name)
removeAttributeNS(self, namespaceURI, localName)
removeAttributeNode(self, node)
removeAttributeNodeNS = removeAttributeNode(self, node)
setAttribute(self, attname, value)
setAttributeNS(self, namespaceURI, qualifiedName, value)
setAttributeNode(self, attr)
setAttributeNodeNS = setAttributeNode(self, attr)
setIdAttribute(self, name)
setIdAttributeNS(self, namespaceURI, localName)
setIdAttributeNode(self, idAttr)
unlink(self)
writexml(self, writer, indent='', addindent='', newl='')

Data descriptors defined here:
attributes
NamedNodeMap of attributes on the element.
localName
Namespace-local name of this element.

Data and other attributes defined here:
nodeType = 1
nodeValue = None
schemaType = <TypeInfo None>

Methods inherited from Node:
__nonzero__(self)
appendChild(self, node)
cloneNode(self, deep)
getInterface(self, feature)
getUserData(self, key)
hasChildNodes(self)
insertBefore(self, newChild, refChild)
isSameNode(self, other)
isSupported(self, feature, version)
normalize(self)
removeChild(self, oldChild)
replaceChild(self, newChild, oldChild)
setUserData(self, key, data, handler)
toprettyxml(self, indent='\t', newl='\n', encoding=None)
toxml(self, encoding=None)

Data descriptors inherited from Node:
firstChild
First child node, or None.
lastChild
Last child node, or None.

Data and other attributes inherited from Node:
namespaceURI = None
nextSibling = None
ownerDocument = None
parentNode = None
prefix = None
previousSibling = None

Data and other attributes inherited from xml.dom.Node:
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 ElementInfo(__builtin__.object)
    Object that represents content-model information for an element.
 
This implementation is not expected to be used in practice; DOM
builders should provide implementations which do the right thing
using information available to it.
 
  Methods defined here:
__getstate__(self)
__init__(self, name)
__setstate__(self, state)
getAttributeType(self, aname)
getAttributeTypeNS(self, namespaceURI, localName)
isElementContent(self)
isEmpty(self)
Returns true iff this element is declared to have an EMPTY
content model.
isId(self, aname)
Returns true iff the named attribte is a DTD-style ID.
isIdNS(self, namespaceURI, localName)
Returns true iff the identified attribute is a DTD-style ID.

Data descriptors defined here:
tagName

 
class Entity(Identified, Node)
    
Method resolution order:
Entity
Identified
Node
xml.dom.Node
xml.dom.minicompat.GetattrMagic

Methods defined here:
__init__(self, name, publicId, systemId, notation)
appendChild(self, newChild)
insertBefore(self, newChild, refChild)
removeChild(self, oldChild)
replaceChild(self, newChild, oldChild)

Data and other attributes defined here:
actualEncoding = None
attributes = None
encoding = None
nodeType = 6
nodeValue = None
version = None

Methods inherited from Node:
__nonzero__(self)
cloneNode(self, deep)
getInterface(self, feature)
getUserData(self, key)
hasChildNodes(self)
isSameNode(self, other)
isSupported(self, feature, version)
normalize(self)
setUserData(self, key, data, handler)
toprettyxml(self, indent='\t', newl='\n', encoding=None)
toxml(self, encoding=None)
unlink(self)

Data descriptors inherited from Node:
firstChild
First child node, or None.
lastChild
Last child node, or None.
localName
Namespace-local name of this node.

Data and other attributes inherited from Node:
namespaceURI = None
nextSibling = None
ownerDocument = None
parentNode = None
prefix = None
previousSibling = None

Data and other attributes inherited from xml.dom.Node:
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 Identified
    Mix-in class that supports the publicId and systemId attributes.
 
 

 
class NamedNodeMap(__builtin__.object, xml.dom.minicompat.GetattrMagic)
    The attribute list is a transient interface to the underlying
dictionaries.  Mutations here will change the underlying element's
dictionary.
 
Ordering is imposed artificially and does not reflect the order of
attributes as found in an input document.
 
 
Method resolution order:
NamedNodeMap
__builtin__.object
xml.dom.minicompat.GetattrMagic

Methods defined here:
__cmp__(self, other)
__delitem__(self, attname_or_tuple)
__getitem__(self, attname_or_tuple)
__getstate__(self)
__init__(self, attrs, attrsNS, ownerElement)
__len__ = _get_length(self)
__setitem__(self, attname, value)
# same as set
__setstate__(self, state)
get(self, name, value=None)
getNamedItem(self, name)
getNamedItemNS(self, namespaceURI, localName)
has_key(self, key)
item(self, index)
items(self)
itemsNS(self)
keys(self)
keysNS(self)
removeNamedItem(self, name)
removeNamedItemNS(self, namespaceURI, localName)
setNamedItem(self, node)
setNamedItemNS(self, node)
values(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
length
Number of nodes in the NamedNodeMap.

 
class Node(xml.dom.Node, xml.dom.minicompat.GetattrMagic)
    
Method resolution order:
Node
xml.dom.Node
xml.dom.minicompat.GetattrMagic

Methods defined here:
__nonzero__(self)
appendChild(self, node)
cloneNode(self, deep)
getInterface(self, feature)
getUserData(self, key)
hasChildNodes(self)
insertBefore(self, newChild, refChild)
isSameNode(self, other)
isSupported(self, feature, version)
normalize(self)
removeChild(self, oldChild)
replaceChild(self, newChild, oldChild)
setUserData(self, key, data, handler)
toprettyxml(self, indent='\t', newl='\n', encoding=None)
toxml(self, encoding=None)
unlink(self)

Data descriptors defined here:
firstChild
First child node, or None.
lastChild
Last child node, or None.
localName
Namespace-local name of this node.

Data and other attributes defined here:
namespaceURI = None
nextSibling = None
ownerDocument = None
parentNode = None
prefix = None
previousSibling = None

Data and other attributes inherited from xml.dom.Node:
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 Notation(Identified, Childless, Node)
    
Method resolution order:
Notation
Identified
Childless
Node
xml.dom.Node
xml.dom.minicompat.GetattrMagic

Methods defined here:
__init__(self, name, publicId, systemId)

Data and other attributes defined here:
nodeType = 12
nodeValue = None

Methods inherited from Childless:
appendChild(self, node)
hasChildNodes(self)
insertBefore(self, newChild, refChild)
removeChild(self, oldChild)
replaceChild(self, newChild, oldChild)

Data and other attributes inherited from Childless:
attributes = None
childNodes = ()
firstChild = None
lastChild = None

Methods inherited from Node:
__nonzero__(self)
cloneNode(self, deep)
getInterface(self, feature)
getUserData(self, key)
isSameNode(self, other)
isSupported(self, feature, version)
normalize(self)
setUserData(self, key, data, handler)
toprettyxml(self, indent='\t', newl='\n', encoding=None)
toxml(self, encoding=None)
unlink(self)

Data descriptors inherited from Node:
localName
Namespace-local name of this node.

Data and other attributes inherited from Node:
namespaceURI = None
nextSibling = None
ownerDocument = None
parentNode = None
prefix = None
previousSibling = None

Data and other attributes inherited from xml.dom.Node:
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 ProcessingInstruction(Childless, Node)
    
Method resolution order:
ProcessingInstruction
Childless
Node
xml.dom.Node
xml.dom.minicompat.GetattrMagic

Methods defined here:
__init__(self, target, data)
__setattr__(self, name, value)
writexml(self, writer, indent='', addindent='', newl='')

Data and other attributes defined here:
nodeType = 7

Methods inherited from Childless:
appendChild(self, node)
hasChildNodes(self)
insertBefore(self, newChild, refChild)
removeChild(self, oldChild)
replaceChild(self, newChild, oldChild)

Data and other attributes inherited from Childless:
attributes = None
childNodes = ()
firstChild = None
lastChild = None

Methods inherited from Node:
__nonzero__(self)
cloneNode(self, deep)
getInterface(self, feature)
getUserData(self, key)
isSameNode(self, other)
isSupported(self, feature, version)
normalize(self)
setUserData(self, key, data, handler)
toprettyxml(self, indent='\t', newl='\n', encoding=None)
toxml(self, encoding=None)
unlink(self)

Data descriptors inherited from Node:
localName
Namespace-local name of this node.

Data and other attributes inherited from Node:
namespaceURI = None
nextSibling = None
ownerDocument = None
parentNode = None
prefix = None
previousSibling = None

Data and other attributes inherited from xml.dom.Node:
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 ReadOnlySequentialNamedNodeMap(__builtin__.object, xml.dom.minicompat.GetattrMagic)
    
Method resolution order:
ReadOnlySequentialNamedNodeMap
__builtin__.object
xml.dom.minicompat.GetattrMagic

Methods defined here:
__getitem__(self, name_or_tuple)
__getstate__(self)
__init__(self, seq=())
__len__(self)
__setstate__(self, state)
getNamedItem(self, name)
getNamedItemNS(self, namespaceURI, localName)
item(self, index)
removeNamedItem(self, name)
removeNamedItemNS(self, namespaceURI, localName)
setNamedItem(self, node)
setNamedItemNS(self, node)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
length
Number of entries in the NamedNodeMap.

 
class Text(CharacterData)
    
Method resolution order:
Text
CharacterData
Childless
Node
xml.dom.Node
xml.dom.minicompat.GetattrMagic

Methods defined here:
replaceWholeText(self, content)
splitText(self, offset)
writexml(self, writer, indent='', addindent='', newl='')

Data descriptors defined here:
isWhitespaceInElementContent
True iff this text node contains only whitespace and is in element content.
wholeText
The text of all logically-adjacent text nodes.

Data and other attributes defined here:
attributes = None
nodeName = '#text'
nodeType = 3

Methods inherited from CharacterData:
__len__ = _get_length(self)
__repr__(self)
__setattr__(self, name, value)
appendData(self, arg)
deleteData(self, offset, count)
insertData(self, offset, arg)
replaceData(self, offset, count, arg)
substringData(self, offset, count)

Data descriptors inherited from CharacterData:
length
Length of the string data.

Methods inherited from Childless:
appendChild(self, node)
hasChildNodes(self)
insertBefore(self, newChild, refChild)
removeChild(self, oldChild)
replaceChild(self, newChild, oldChild)

Data and other attributes inherited from Childless:
childNodes = ()
firstChild = None
lastChild = None

Methods inherited from Node:
__nonzero__(self)
cloneNode(self, deep)
getInterface(self, feature)
getUserData(self, key)
isSameNode(self, other)
isSupported(self, feature, version)
normalize(self)
setUserData(self, key, data, handler)
toprettyxml(self, indent='\t', newl='\n', encoding=None)
toxml(self, encoding=None)
unlink(self)

Data descriptors inherited from Node:
localName
Namespace-local name of this node.

Data and other attributes inherited from Node:
namespaceURI = None
nextSibling = None
ownerDocument = None
parentNode = None
prefix = None
previousSibling = None

Data and other attributes inherited from xml.dom.Node:
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 TypeInfo(__builtin__.object)
     Methods defined here:
__init__(self, namespace, name)
__repr__(self)

Data descriptors defined here:
name
namespace

 
Functions
       
getDOMImplementation(features=None)
parse(file, parser=None, bufsize=None)
Parse a file into a DOM by filename or file object.
parseString(string, parser=None)
Parse a file into a DOM from a string.

 
Data
        EMPTY_NAMESPACE = None
EMPTY_PREFIX = None
StringTypes = (<type 'str'>, <type 'unicode'>)
XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/'