February 2006
Intermediate to advanced
648 pages
14h 53m
English
The xml.dom.minidom module provides a simple parser for creating DOM trees.
parse(file [, parser])Parses the contents of file and returns a Document node representing the top of the document tree. file is a filename or an already-open file object. parser is an optional SAX2-compatible parser object that will be used to construct the tree. If omitted, a default parser will be used.
parseString(string [, parser])The same as parse(), except that the input data is supplied in a string instead of a file.
Both of these parsing methods return the top node of a DOM tree. The tree can be traversed using the standard attributes and methods for nodes described in the xml.dom module. The xml.dom.minidom module adds a few additional methods ...
Read now
Unlock full access