Re: Python object <-> XML

2007-09-03 Thread Stefan Behnel
Samuel wrote: > Say you have the following XML: > > > item 1 > > > item 2 > > > > > my group > > > Is there an easy way (i.e. without writing a sax/dom parser) to load > this into a (number of) Python object(s), manipulate the instance, and > save the result back to XML? Try lx

Re: Python object <-> XML

2007-09-03 Thread Laurent Pointal
Samuel wrote: > Hi, > > Say you have the following XML: > > > item 1 > > > item 2 > > > > > my group > > > Is there an easy way (i.e. without writing a sax/dom parser) to load > this into a (number of) Python object(s), manipulate the instance, and > save the result back to XM

Re: Python object <-> XML

2007-09-03 Thread Samuel
On Sep 3, 10:19 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > > Is there an easy way (i.e. without writing a sax/dom parser) to load > > this into a (number of) Python object(s), manipulate the instance, and > > save the result back to XML? > > Yea, use ElementTree and you'd get a bunch of nested li

Re: Python object <-> XML

2007-09-03 Thread Jarek Zgoda
Samuel napisaƂ(a): > Say you have the following XML: > > > item 1 > > > item 2 > > > > > my group > > > Is there an easy way (i.e. without writing a sax/dom parser) to load > this into a (number of) Python object(s), manipulate the instance, and > save the result back to XML?