[flexcoders] Re: httpservice.lastresult completes but theres no data.

2010-07-01 Thread Clark Stevenson
It seems e4x is the problem. If i change the httpservice class to xml The lastResult property is shown. There must be some special rule where this isnt acceptably in e4x: data/data It only shows under the xml format. Why is this? Clark. On 1 July 2010 00:23, Clark Stevenson

Re: [flexcoders] Re: httpservice.lastresult completes but theres no data.

2010-07-01 Thread Oleg Sivokon
E4X prints the content of self closing nodes as an empty string (if it's not the root node). You may want to use toXMLString() to print the structure of the node.

Re: [flexcoders] Re: httpservice.lastresult completes but theres no data.

2010-07-01 Thread Clark Stevenson
Thanks for your help Oleg, Appreciated. I think your solution makes sense although i think i also may have been uneducated with the root node. The server returns data/data as data / And since data is the root node, it appears to be ignored (or an empty string like you say). root data id=1

Re: [flexcoders] Re: httpservice.lastresult completes but theres no data.

2010-07-01 Thread Oleg Sivokon
E4X always reduces the foo/foo kind of nodes to foo/ because first is redundant and ambiguous. It is not clear whether the first kind is in fact two nodes - an element node with a child text node with the value of empty string, or is it a single element node. It is also longer than needed, if it