3 Replies Latest reply on Aug 14, 2014 5:25 PM by sickeiros

    Issue with SimpleXMLDecoder


      I am trying to use the following code to convert XML to object and use it in the code.




      var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(true);


      var salesVO:Object = decoder.decodeXML(xmlDoc) ;


      I have an attribute of type String with name "ItemName" which has value


      <ItemName>01234567890123456789</ItemName>  in XML


      once the above code is executed I am geeting the value for ItemName as 1.2e+15 etc in salesVO. which means the xmldecoder is taking string like number.


      Is there a way to prevent this.