As I continue to poke my way around with Flex2 in the few hours I get a week, once in a while I keep hitting walls that I dont really expect. And with any new technology, my skills with google search yield few results to ease the pain. Take today for example…
So there I was trying to write this real easy app that would take this not too convoluted XML file and render it in a list with the node-names as the entries. Nothing simpler, you say?…not quite. For the longest time after putzing with the HTTPService class, I was still not able to read the stupid document. I looked at some of the examples couldnt quite find out what I was doing wrong…..until 5 minutes ago.
Turns out HTTPService returns the data as an object by default. To get an XML document back make sure you have resultFormat=”xml” in the HTTPService.
Oh, and remember to keep XML.ignoreWhitespace = “true”.
…source code coming soon.
Software Engineer at Comcast Innovation Labs, Creative Technologist, Open Source enthusiast, amateur illustrator, manager Philly Android Alliance User Group. The content on this blog do not reflect the views of my employer.