Answered
Using XML as plain text in TextFilter
I have an application with an XML tag:
<mx:XML id="textXML1">
<root><c1>goodbye</c1></root>
</mx:XML>
I then have a string variable which I set equal to that XML:
var t:String = textXML1;
I then set up a TextFlow by the following line of code:
textFlow = TextFilter.importToFlow(t, TextFilter.PLAIN_TEXT_FORMAT);
However, I then do a trace of the text value in the TextFlow:
trace("textFlow's text: " + TextUtil.extractText(textFlow));
The resultant dump is:
textFlow's text: <root>
<c1>goodby
<c1>goodbye
Any ideas?
<mx:XML id="textXML1">
<root><c1>goodbye</c1></root>
</mx:XML>
I then have a string variable which I set equal to that XML:
var t:String = textXML1;
I then set up a TextFlow by the following line of code:
textFlow = TextFilter.importToFlow(t, TextFilter.PLAIN_TEXT_FORMAT);
However, I then do a trace of the text value in the TextFlow:
trace("textFlow's text: " + TextUtil.extractText(textFlow));
The resultant dump is:
textFlow's text: <root>
<c1>goodby
<c1>goodbye
Any ideas?
