Correct, just to clarify this a little further... this isn't some quirk of AS3 - this is implemented as specified in the ECMA 357 E4X specification... section 10.1.1 states: "Given an XML object x, the operator ToString converts x to a string s. If a value of type XML has simple content (i.e., contains no elements), it represents a primitive value and ToString returns the String contents of the XML object, omitting the start tag, attributes, namespace declarations and end tag. Otherwise, ToString returns a string representing the entire XML object, including the start tag, attributes, namespace declarations and the end tag."
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Wednesday, May 16, 2007 10:12 PM To: [email protected] Subject: RE: [flexcoders] Re: HELP! How to get a subnode in such a XML data? Yes, always do this: trace(myXML.toXMLString()) the ordinary toString(), which trace uses, does not handle single xml nodes correctly. Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of xyjaws Sent: Wednesday, May 16, 2007 8:36 PM To: [email protected] Subject: [flexcoders] Re: HELP! How to get a subnode in such a XML data? It's my fault. It do work actually. To my strange, the trace command outuput nothing of a single xml node without any child.

