views:

2553

answers:

1

Hi,

There is simple JSON serialization module with name "simplejson" which easily serializes Python objects to JSON.

I'm looking for similar module which can serialize to XML.

Thank you

+3  A: 

http://code.activestate.com/recipes/415983/

http://sourceforge.net/projects/pyxser/

http://soapy.sourceforge.net/

http://www.ibm.com/developerworks/webservices/library/ws-pyth5/

S.Lott
> http://code.activestate.com/recipes/415983/This one doesn't serialize to XML only to marshal format. And also I don't like sys.exit on Exception.> http://sourceforge.net/projects/pyxser/This one is not BSD. Sorry I forgot to mention, I'm looking for python module or BSD, so I can distribute with my BSD software.The last 2 - for webservices, I'm looking for regular XML serializator.
zdmytriv
zdmytriv: you can distribute a LGPL library with your BSD code without liabilities.
nosklo
@nosklo: I didn't know that you can do that. Now I know, thanks.
zdmytriv