xml.dom.minidom
index
/usr/lib/python2.1/xml/dom/minidom.py

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
            
string
xml

 
Classes
            
DOMImplementation
NamedNodeMap
xml.dom.Node
Node
Attr
CharacterData
Text
CDATASection
Comment
Document
DocumentFragment
DocumentType
Element
ProcessingInstruction

 
class Attr(Node)
       
  
__getattr__(self, key) from Node
__init__(self, qName, namespaceURI='', localName=None, prefix=None)
__nonzero__(self) from Node
__setattr__(self, name, value)
_get_firstChild(self) from Node
_get_lastChild(self) from Node
appendChild(self, node) from Node
cloneNode(self, deep)
hasChildNodes(self) from Node
insertBefore(self, newChild, refChild) from Node
isSameNode(self, other) from Node
normalize(self) from Node
removeChild(self, oldChild) from Node
replaceChild(self, newChild, oldChild) from Node
toprettyxml(self, indent='\t', newl='\n') from Node
toxml(self) from Node
unlink(self) from Node

 
AttributeList = class NamedNodeMap
      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.
 
  
__cmp__(self, other)
__delitem__(self, attname_or_tuple)
__getattr__(self, name)
__getitem__(self, attname_or_tuple)
#FIXME: is it appropriate to return .value?
__init__(self, attrs, attrsNS)
__len__(self)
__setitem__(self, attname, value)
# same as set
get(self, name, value=None)
item(self, index)
items(self)
itemsNS(self)
keys(self)
keysNS(self)
setNamedItem(self, node)
setNamedItemNS(self, node)
values(self)

 
class CDATASection(Text)
       
  
__getattr__(self, key) from Node
__init__(self, data) from CharacterData
__nonzero__(self) from Node
__repr__(self) from CharacterData
_get_firstChild(self) from Node
_get_lastChild(self) from Node
appendChild(self, node) from Node
appendData(self, arg) from CharacterData
cloneNode(self, deep) from Node
deleteData(self, offset, count) from CharacterData
hasChildNodes(self) from Node
insertBefore(self, newChild, refChild) from Node
insertData(self, offset, arg) from CharacterData
isSameNode(self, other) from Node
normalize(self) from Node
removeChild(self, oldChild) from Node
replaceChild(self, newChild, oldChild) from Node
replaceData(self, offset, count, arg) from CharacterData
splitText(self, offset) from Text
substringData(self, offset, count) from CharacterData
toprettyxml(self, indent='\t', newl='\n') from Node
toxml(self) from Node
unlink(self) from Node
writexml(self, writer, indent='', addindent='', newl='')

 
class CharacterData(Node)
       
  
__getattr__(self, key) from Node
__init__(self, data)
__nonzero__(self) from Node
__repr__(self)
_get_firstChild(self) from Node
_get_lastChild(self) from Node
appendChild(self, node) from Node
appendData(self, arg)
cloneNode(self, deep) from Node
deleteData(self, offset, count)
hasChildNodes(self) from Node
insertBefore(self, newChild, refChild) from Node
insertData(self, offset, arg)
isSameNode(self, other) from Node
normalize(self) from Node
removeChild(self, oldChild) from Node
replaceChild(self, newChild, oldChild) from Node
replaceData(self, offset, count, arg)
substringData(self, offset, count)
toprettyxml(self, indent='\t', newl='\n') from Node
toxml(self) from Node
unlink(self) from Node

 
class Comment(Node)
       
  
__getattr__(self, key) from Node
__init__(self, data)
__nonzero__(self) from Node
_get_firstChild(self) from Node
_get_lastChild(self) from Node
appendChild(self, node) from Node
cloneNode(self, deep) from Node
hasChildNodes(self) from Node
insertBefore(self, newChild, refChild) from Node
isSameNode(self, other) from Node
normalize(self) from Node
removeChild(self, oldChild) from Node
replaceChild(self, newChild, oldChild) from Node
toprettyxml(self, indent='\t', newl='\n') from Node
toxml(self) from Node
unlink(self) from Node
writexml(self, writer, indent='', addindent='', newl='')

 
class DOMImplementation
       
  
_createDocument(self)
# internal
createDocument(self, namespaceURI, qualifiedName, doctype)
createDocumentType(self, qualifiedName, publicId, systemId)
hasFeature(self, feature, version)

 
class Document(Node)
       
  
__getattr__(self, key) from Node
__init__(self) from Node
__nonzero__(self) from Node
_get_documentElement(self)
_get_firstChild(self) from Node
_get_lastChild(self) from Node
appendChild(self, node)
cloneNode(self, deep) from Node
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)
getElementsByTagName(self, name)
getElementsByTagNameNS(self, namespaceURI, localName)
hasChildNodes(self) from Node
insertBefore(self, newChild, refChild) from Node
isSameNode(self, other) from Node
normalize(self) from Node
removeChild(self, oldChild)
replaceChild(self, newChild, oldChild) from Node
toprettyxml(self, indent='\t', newl='\n') from Node
toxml(self) from Node
unlink(self)
writexml(self, writer, indent='', addindent='', newl='')

 
class DocumentFragment(Node)
       
  
__getattr__(self, key) from Node
__init__(self) from Node
__nonzero__(self) from Node
_get_firstChild(self) from Node
_get_lastChild(self) from Node
appendChild(self, node) from Node
cloneNode(self, deep) from Node
hasChildNodes(self) from Node
insertBefore(self, newChild, refChild) from Node
isSameNode(self, other) from Node
normalize(self) from Node
removeChild(self, oldChild) from Node
replaceChild(self, newChild, oldChild) from Node
toprettyxml(self, indent='\t', newl='\n') from Node
toxml(self) from Node
unlink(self) from Node

 
class DocumentType(Node)
       
  
__getattr__(self, key) from Node
__init__(self, qualifiedName)
__nonzero__(self) from Node
_get_firstChild(self) from Node
_get_lastChild(self) from Node
appendChild(self, node) from Node
cloneNode(self, deep) from Node
hasChildNodes(self) from Node
insertBefore(self, newChild, refChild) from Node
isSameNode(self, other) from Node
normalize(self) from Node
removeChild(self, oldChild) from Node
replaceChild(self, newChild, oldChild) from Node
toprettyxml(self, indent='\t', newl='\n') from Node
toxml(self) from Node
unlink(self) from Node

 
class Element(Node)
       
  
__getattr__(self, key) from Node
__init__(self, tagName, namespaceURI=None, prefix='', localName=None)
__nonzero__(self) from Node
__repr__(self)
_get_attributes(self)
_get_firstChild(self) from Node
_get_lastChild(self) from Node
appendChild(self, node) from Node
cloneNode(self, deep)
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)
hasChildNodes(self) from Node
insertBefore(self, newChild, refChild) from Node
isSameNode(self, other) from Node
normalize(self) from Node
removeAttribute(self, name)
removeAttributeNS(self, namespaceURI, localName)
removeAttributeNode(self, node)
removeAttributeNodeNS = removeAttributeNode(self, node)
removeChild(self, oldChild) from Node
replaceChild(self, newChild, oldChild) from Node
setAttribute(self, attname, value)
setAttributeNS(self, namespaceURI, qualifiedName, value)
setAttributeNode(self, attr)
setAttributeNodeNS = setAttributeNode(self, attr)
toprettyxml(self, indent='\t', newl='\n') from Node
toxml(self) from Node
unlink(self)
writexml(self, writer, indent='', addindent='', newl='')

 
class NamedNodeMap
      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.
 
  
__cmp__(self, other)
__delitem__(self, attname_or_tuple)
__getattr__(self, name)
__getitem__(self, attname_or_tuple)
#FIXME: is it appropriate to return .value?
__init__(self, attrs, attrsNS)
__len__(self)
__setitem__(self, attname, value)
# same as set
get(self, name, value=None)
item(self, index)
items(self)
itemsNS(self)
keys(self)
keysNS(self)
setNamedItem(self, node)
setNamedItemNS(self, node)
values(self)

 
class Node(xml.dom.Node)
       
  
__getattr__(self, key)
__init__(self)
__nonzero__(self)
_get_firstChild(self)
_get_lastChild(self)
appendChild(self, node)
cloneNode(self, deep)
hasChildNodes(self)
insertBefore(self, newChild, refChild)
isSameNode(self, other)
normalize(self)
removeChild(self, oldChild)
replaceChild(self, newChild, oldChild)
toprettyxml(self, indent='\t', newl='\n')
toxml(self)
unlink(self)

 
class ProcessingInstruction(Node)
       
  
__getattr__(self, key) from Node
__init__(self, target, data)
__nonzero__(self) from Node
_get_firstChild(self) from Node
_get_lastChild(self) from Node
appendChild(self, node) from Node
cloneNode(self, deep) from Node
hasChildNodes(self) from Node
insertBefore(self, newChild, refChild) from Node
isSameNode(self, other) from Node
normalize(self) from Node
removeChild(self, oldChild) from Node
replaceChild(self, newChild, oldChild) from Node
toprettyxml(self, indent='\t', newl='\n') from Node
toxml(self) from Node
unlink(self) from Node
writexml(self, writer, indent='', addindent='', newl='')

 
class Text(CharacterData)
       
  
__getattr__(self, key) from Node
__init__(self, data) from CharacterData
__nonzero__(self) from Node
__repr__(self) from CharacterData
_get_firstChild(self) from Node
_get_lastChild(self) from Node
appendChild(self, node) from Node
appendData(self, arg) from CharacterData
cloneNode(self, deep) from Node
deleteData(self, offset, count) from CharacterData
hasChildNodes(self) from Node
insertBefore(self, newChild, refChild) from Node
insertData(self, offset, arg) from CharacterData
isSameNode(self, other) from Node
normalize(self) from Node
removeChild(self, oldChild) from Node
replaceChild(self, newChild, oldChild) from Node
replaceData(self, offset, count, arg) from CharacterData
splitText(self, offset)
substringData(self, offset, count) from CharacterData
toprettyxml(self, indent='\t', newl='\n') from Node
toxml(self) from Node
unlink(self) from Node
writexml(self, writer, indent='', addindent='', newl='')

 
Functions
            
_doparse(func, args, kwargs)
_getElementsByTagNameHelper(parent, name, rc)
_getElementsByTagNameNSHelper(parent, nsURI, localName, rc)
_get_StringIO()
_nssplit(qualifiedName)
_write_data(writer, data)
Writes datachars to writer.
getDOMImplementation()
parse(*args, **kwargs)
Parse a file into a DOM by filename or file object.
parseString(*args, **kwargs)
Parse a file into a DOM from a string.

 
Data
             _StringTypes = (<type 'string'>, <type 'unicode'>)
_TupleType = <type 'tuple'>
__file__ = '/usr/lib/python2.1/xml/dom/minidom.pyc'
__name__ = 'xml.dom.minidom'