|
Hi List, I want to be able to serialise and de-serialise ActionScript objects to XML so they can sent to a server application. I would prefer to write a method for this once that can handle any object. Unfortunately, the introspection API is sadly wanting (doesn't report private members), which makes it insufficient for this purpose. The SimpleXMLEncoder apparently does this, but I can't work out how to use it. Can anybody point me to some examples or offer suggestions for alternative methods? This code produces errors: var myObj:TestClass = new TestClass; var doc:XMLDocument = new XMLDocument; var coder:SimpleXMLEncoder = new SimpleXMLEncoder(doc); var node:XMLNode = coder.encodeValue(myObj, ("" as QName), doc); trace(node.toString()); What am I doing wrong? Cheers, Lach
__._,_.___
-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |

