Re: [Tutor] parsing XML into a python dictionary

2009-11-15 Thread Stefan Behnel
Christopher Spears, 14.11.2009 19:47: > Thanks! I have a lot of XML files at work that users search through. I > want to parse the XML into a python dictionary and then read the dictionary > into a database that users can use to search through the thousands of files. I think "database" is the righ

Re: [Tutor] parsing XML into a python dictionary

2009-11-14 Thread Christopher Spears
erything under the "comic" tag. --- On Sat, 11/14/09, Kent Johnson wrote: > From: Kent Johnson > Subject: Re: [Tutor] parsing XML into a python dictionary > To: "Christopher Spears" > Cc: tutor@python.org > Date: Saturday, November 14, 2009, 5:03 AM &

Re: [Tutor] parsing XML into a python dictionary

2009-11-14 Thread Kent Johnson
On Sat, Nov 14, 2009 at 1:14 AM, Christopher Spears wrote: > I've been working on a way to parse an XML document and convert it into a > python dictionary.  I want to maintain the hierarchy of the XML.  Here is the > sample XML I have been working on: > > >   >    Neil Gaiman >    Glyn Dillon >

Re: [Tutor] parsing XML into a python dictionary

2009-11-14 Thread Alan Gauld
"Christopher Spears" wrote I've been working on a way to parse an XML document and convert it into a python dictionary. I want to maintain the hierarchy of the XML. Here is the sample XML I have been working on: Neil Gaiman Glyn Dillon Charles Vess This is my first stab at

[Tutor] parsing XML into a python dictionary

2009-11-13 Thread Christopher Spears
I've been working on a way to parse an XML document and convert it into a python dictionary. I want to maintain the hierarchy of the XML. Here is the sample XML I have been working on: Neil Gaiman Glyn Dillon Charles Vess This is my first stab at this: #!/usr/bin/env pyth