PyDocs

Structured Markup Processing Tools

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
Symbols in xml.dom.minidom

n

Node.toprettyxml
Return a pretty-printed version of the document.
Node.toxml
Return a string or byte string containing the XML represented by the DOM node.
Node.unlink
Break internal references within the DOM so that it will be garbage collected on versions of Python without cyclic GC.
Node.writexml
Write XML to the writer object.

p

parse
Parse a file into a DOM by filename or file object.
parseString
Parse a file into a DOM from a string.