[XML-SIG] XML to Object translation

Alexandre Fayolle Alexandre.Fayolle@logilab.fr
Mon, 20 Nov 2000 10:37:18 +0100 (CET)

On Sun, 19 Nov 2000, test e mail wrote:
May I suggest that you change the config of your mail client? My first
reaction upon seeing your message was to delete it without opening it

> What is the best way to map XML to objects?  I am designing a program
> that needs to transfer objects via XML. What is the best approach for
> this?  Is there an existing framework for this?

Why do you make XML a requirement for this? I mean, if you want to setup a
distributed application, CORBA seems reasonable. 

If you need a human-readable xml serialisation of your objects, that's
different. Since python objects are basically dictionnaries, putting up
an XML marshaller should not be difficult. If you just need an XML
serialisation, you could use Pickle to produce a string representation of
the object, encode it using base64, and enclose it in a text node.

You may also want to look at XML RPC, and SOAP, which provide transparent
RPC mechanisms based on XML representation of data. Python implementations
can be found at http://www.pythonware.com/products.htm

If you tell us a bit more about your needs, maybe we'll be able to help
you further.

Alexandre Fayolle
Narval is the first software agent available as free software (GPL).
LOGILAB, Paris (France).