Re: [flexcoders] Re: httpservice.lastresult completes but theres no data.
E4X always reduces the kind of nodes to 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 is meant to be a single node. Well, the result was not missing, it's just that the way you printed it out was not good. XML.toString() prints the value of the node, not the structure. The value of the self closing node is "". However, toString() makes an exception if the node to be printed is the root node, it will print the structure of the node. I don't know what is the reason behind it.
Re: [flexcoders] Re: httpservice.lastresult completes but theres no data.
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 as And since data is the root node, it appears to be ignored (or an empty string like you say). will turn into And this solved the problem of the missing lastresult. Clark. On 1 July 2010 09:27, Oleg Sivokon wrote: > > > 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.
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.
[flexcoders] Re: httpservice.lastresult completes but theres no data.
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: It only shows under the xml format. Why is this? Clark. On 1 July 2010 00:23, Clark Stevenson wrote: > > Hi everyone. > > I have a nightmare problem. > > I am using httpservice with e4x. > > > If i was to retrieve an XML file from the server in this simple format: > > > > > > > If i looked at my httpservice.lastResult i would see the above xml. This > works perfect. > > > However, in my case, the data may contain no items. > > > > > > Now my last result, loads without error, even charles tells me the page > size etc. However, when i try to look at the result i see nothing... No data > at all. > > > I have ran out of ideas on what else to test. Is there anything obvious > which i am missing? Maybe some rule where is converted > to and flex simply does not like this format? > > > Thanks for reading. > > Clark. >