Saving & Restoring Python objects in XML?

Martin v. Loewis martin at v.loewis.de
Mon Sep 23 18:51:58 EDT 2002


Tom Bridgman <bridgman at wyeth.gsfc.nasa.gov> writes:

> Is there a way to write the parser handlers and/or other components (I'm
> using PyXML 0.7 and higher) such that they can assemble the required
> objects as they read in the file?

If you have mostly simple data types, xml.marshal.generic might be
appropriate. If you have classes that you want to marshal and
unmarshal, inheriting from that framework might help.

Regards,
Martin




More information about the Python-list mailing list