Hi guys, Eg:
PHP Code:
var xml:XML = <foo><bar> hello </bar><bar> hello </bar></foo>;
trace(xml.toXMLString());
I get this:
PHP Code:
<foo>
<bar>hello</bar>
<bar>hello</bar>
</foo>
Why are the spaces disappearing? Is there any setting for this? I need this because in the xml I have E.g:
PHP Code:
<text>
<b>hello </b>
<u>my name is </u>
John
</foo>
and I format this "xml" into into a custom flow element for the new Text Layout Framework. Only problem I have is the spaces are disappearing!
I can't use
PHP Code:
XML.ignoreWhitespace = false;
because all the other white space gets into my elements