The default resultFormat is "object", which attempts to cnvert your xml into
a tree of dynamic objects, making its best guess about the data types.

 

Switch to resultFormat="e4x" which will give you your data in its unmodified
xml/string format.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of danapayne
Sent: Sunday, June 28, 2009 9:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] XML data translated to wrong datatype

 






I have one particular piece of data in an XML file, retrieved via
HTTPService, that is being mistakenly being translated incorrectly. I'm
using a Value Object and it's defined in there as a String datatype.

There's not a problem until the data contains something that can be
interpreted as exponential notation, for example 1E01, which it thinks means
the number "10" or anything starting with 1E.

At first I tried to fix it in the Value Object but I've looked at the debug
information and this translation appears to be happening at the HTTPService
end of things because the result event already shows the changed value. BTW,
this same annoying thing happens in an Excel spreadsheet with the same data
in it - Excel keeps wanting to interpret it as a Number type.

Anyone know how I can fix this problem and let the data come through
unchanged?

Dana



Reply via email to