The HTTPServlet has a property called resultFormat to allow the
programmer to control how the data is formatted in the response.  The
default, "object", causes the response XMLNode to be parsed into a
flex object tree.  GREAT.  But it also converts the strings in the XML
into known types.  Thus the string "100e" is converted into the number
100.  The "e" is removed because it is unnecessary.  Problem is, we
didn't want the string "100e" to be parsed at all.  We wanted it to
stay a string.

In general, we will receive unknown data in the response and don't
want the parser fiddling with the data.  Just leave the data as
strings as it transforms the xml into an object tree so we can easily
reference components using the convenient dot notation.

Does anyone know of a way to override the type conversion in the
"object" format or specify another option to get flex to parse the
XMLNode into an object without type conversion? Maybe an option like
"objectstrings" or such?  I know I could write a routine to take the
XMLNode response and convert it into an object myself.... but it seems
quite inefficient.

Thanks.

Reply via email to