Thanks to all - Just to give a positive feed back.
The following solution works for me:
from xml.etree.ElementTree import ElementTree
tree = ElementTree()
tree.parse('inifile.xml')
dicIni = dict((child.tag, child.text) for child in tree.getroot().getchildren())
:-) Martin
This email is mad
On May 11, 2010, at 8:54 AM, Hvidberg, Martin wrote:
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.
default
False
False
UBMlight
True
I would prefer a relative si
On Tue, May 11, 2010 at 5:54 AM, Hvidberg, Martin wrote:
> 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.
>
>
>
>
> default
> False
> False
> UBMlight
> True
>