xml.dom.minidom

Simple implementation of the Level 1 DOM.

Namespaces and other minor Level 2 features are also supported.

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

Functions

defproperty(klass, name, doc)
getDOMImplementation([features])
parse(file[, parser, bufsize]) Parse a file into a DOM by filename or file object.
parseString(string[, parser]) Parse a file into a DOM from a string.

Classes

Attr(qName[, namespaceURI, localName, prefix])
AttributeList alias of NamedNodeMap
CDATASection
CharacterData
Childless Mixin that makes childless-ness easy to implement and avoids the complexity of the Node methods that deal with children.
Comment(data)
DOMImplementation
DOMImplementationLS
Document()
DocumentFragment()
DocumentLS Mixin to create documents that conform to the load/save spec.
DocumentType(qualifiedName)
Element(tagName[, namespaceURI, prefix, ...])
ElementInfo(name) Object that represents content-model information for an element.
EmptyNodeList
Entity(name, publicId, systemId, notation)
Identified Mix-in class that supports the publicId and systemId attributes.
NamedNodeMap(attrs, attrsNS, ownerElement) The attribute list is a transient interface to the underlying dictionaries.
Node
NodeList
Notation(name, publicId, systemId)
ProcessingInstruction(target, data)
ReadOnlySequentialNamedNodeMap([seq])
Text
TypeInfo(namespace, name)