XML Marshalling of objects
Markus Schaber
markus at schabi.de
Wed Oct 3 03:55:23 EDT 2001
Hi,
Magnus Lie Hetland <mlh at idi.ntnu.no> schrub:
> If one wants one's own format, I'm sure rewriting pickle.py t ouse
> xml should be quite doable.
There's a real easy way to do this.
<xml "dtd-declaration here">
<pickled_data>Here just follows the data stream from
pickle()</pickled_data>
</xml>
Just write the two-liner dtd for it, and you have pickle outputting
valid xml, and with almost no speed loss :-)
markus
--
You don't have to be Microsoft to suck... but it helps.
(Tim Hammerquist in comp.lang.python)
More information about the Python-list
mailing list