Python object <-> XML

Samuel knipknap at
Mon Sep 3 22:01:54 CEST 2007


Say you have the following XML:

<item ref="1">
  <name>item 1</name>
<item ref="2">
  <name>item 2</name>
  <item ref="1" />
  <item ref="2" />
  <name>my group</name>

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?


More information about the Python-list mailing list