Home

Samuel napisał(a):

> Say you have the following XML:
>
> <item ref="1">
> <name>item 1</name>
> </item>
> <item ref="2">
> <name>item 2</name>
> </item>
> <group>
> <item ref="1" />
> <item ref="2" />
> <name>my group</name>
> </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?

Yea, use ElementTree and you'd get a bunch of nested lists of very
simple objects.

--
Jarek Zgoda
http://jpa.berlios.de/

previous
next

undo/redo algo
Untrusted python code
Re: Floats as keys in dict
Re: C++ from bison/flex.
comparing values function
Nasze Dzieci
Kidprotect
Mimo Wszystko
Akogo
Fundacja Hobbit