problem in getting value of the object attribute in flex
Posted
by madanmohan
on Stack Overflow
See other posts from Stack Overflow
or by madanmohan
Published on 2009-12-01T10:08:57Z
Indexed on
2010/06/16
6:02 UTC
Read the original article
Hit count: 195
i have an xml which contains 'interface' sub tag, iam converting xml to object using SampleXmlDecoder. compiler did not allow me to access the value of the 'inteface' attrible of the resultobject.
var xml:XML = event.result as XML;
var xmlDoc : XMLDocument = new XMLDocument(xml.toString());
var decoder : SimpleXMLDecoder = new SimpleXMLDecoder(true)
var resultObj : Object = decoder.decodeXML(xmlDoc);
var o:Object = new Object();
o.someprop = resultObj.maintag.item.interface;
its treating interface as keyword. can anyone tell me the solution for this. Thanks in advance
© Stack Overflow or respective owner