reading xml from python

Hvidberg, Martin mhv at dmu.dk
Tue May 11 08:54:06 EDT 2010


I'm looking for at way to read (and later write) small simple .xml file from Python.

e.g. I would like to read the following from a small ini.xml file into a dictionary.

<?xml version="1.0" encoding="UTF-8"?>
<initialisation>
 <idrectory>default</idrectory>
 <nosplit>False</nosplit>
 <nobatch>False</nobatch>
 <ubmmode>UBMlight</ubmmode>
 <overwrite_output>True</overwrite_output>
</initialisation>
I would prefer a relative simple (not too much creating new classes) way to do this.

Any suggestions appreciated.

:-) Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100511/a28cb664/attachment.html>


More information about the Python-list mailing list