Numerous file parsers vs. XML

Martin von Loewis loewis at informatik.hu-berlin.de
Tue Feb 20 14:04:04 CET 2001


Timothy Grant <tjg at exceptionalminds.com> writes:

> Are there any XML modules available that would read and XML
> configuration file for me and return a dictionary of the
> contents?
> 
> Am I being silly and looking for a solution where I don't have
> a problem?

The easiest way may be to read the document into a DOM tree using
xml.dom.minidom of Python 2.0, then use the DOM API to find the bits
and pieces you are looking for.

Regards,
Martin



More information about the Python-list mailing list