Re.: reading xml from python - Sum-up

2010-05-12 Thread Hvidberg, Martin
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

Re: reading xml from python

2010-05-11 Thread Philip Semanchuk
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

Re: reading xml from python

2010-05-11 Thread Chris Rebert
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 >