[XML-SIG] xmlpickle.py ?!
Tue, 08 Aug 2000 10:21:08 +0200
Mike Olson wrote:
> "M.-A. Lemburg" wrote:
> You may want to look at Zope in Zope/lib/python/ZODB/ImportExport.py.
> they do some XML pickling here. However, I think they call back to each
> object for help in the pickle processes (each object writes thier own
> chunk of XML). Though I'm not 100% sure.
I've had a look at that code, but it doesn't seem to take
the same direction as I intend: they sort of convert Python
pickles into something readable by XML keeping e.g. the
encodings used by pickle. I would like to make the xmlpickle
have some truly editable format, e.g. objects are converted
to string representations which do their best at not loosing
precision while still using a common format (repr() does wonders
here for Python's basic types).
BTW, I only have a vague idea about what Xpath et al. do
except that they are intended to address certain parts in
an XML file. Is there anything to watch out for when designing
a DTD in order to make addressability simple with Xpath ?
Ideally the xmlpickle data should be addressable using
standard Python notations, e.g. a.b, a['b'] and a.
Which of the two possibilities I posted would fit this model
w/r to Xpath ?
Python Pages: http://www.lemburg.com/python/