Saturday, May 12, 2007


The short version: If the XML node is a simple text node, the text of the node is returned. Otherwise the entire node is returned as a String. To always return the entire node, use XML.toXMLString().

The long version: check XML.toString() on the livedocs.

1 comment:

Barry said...

Also, if your xml consists of a single empty node, toString will return an empty string.

<mynode type="mytype" />
<mynode type="mytype"></mynode>

Sometimes makes me want to scream.

"Flex", "ActionScript" and possibly "MXML" are probably trademarks of Adobe Systems Incorporated.
"Adobe" is a trademark of Adobe Systems Incorporated.
This site is in no way endorsed or sponsored by Adobe Systems Incorporated.
Content Copyright © 2007 Daniel Freiman.
Site Design Copyright by its copyright holder.
The Flex Non-Docs reserves the right to remove comments for any reason.
All ActionScript and MXML code (and ONLY ActionScript and MXML code) on this website is available under the MIT License.