From: Alan K. <jyt...@xh...> - 2013-03-05 23:29:23
|
[vijetha] > I use Jython-2.5.2 for performance testing in Grinder 3.11 > How can I serialize an object to xml in Jython? What library files are needed to be added? This sweb page has some promising approaches, which should workin jython. serializing python objects to XML http://stackoverflow.com/questions/2101902/serializing-python-objects-to-xml In particular, the gnosisXML package should work. You could also consider serialising to JSON http://jyson.xhaus.com Then converting to XML. Although I would not bother with the XML step, I would probably just leave it in JSON. Unless you have a specific XML related requirement. Alan. |