Search the web
Sign In
New User? Sign Up
flexcoders · RIA Development with Adobe Flex
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
XML data translated to wrong datatype   Message List  
Reply | Forward Message #145100 of 149506 |
RE: [flexcoders] XML data translated to wrong datatype

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:flexcoders@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



Mon Jul 6, 2009 8:06 pm

nts333rd
Offline Offline
Send Email Send Email

Forward
Message #145100 of 149506 |
Expand Messages Author Sort by Date

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...
danapayne
Offline Send Email
Jun 28, 2009
1:46 pm

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...
Tracy Spratt
nts333rd
Offline Send Email
Jul 6, 2009
8:07 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help