flashxml-encoding

XSL and Flash XML breaks escaping


I have an XSL file I am loading in flash that includes the following snippet:

<xsl:text>&#x2022;</xsl:text>

I load it this way:

_root.brochure_xsl = new XML();
_root.brochure_xsl.onLoad = function() {
    _root.SendPdfXml();
}
_root.brochure_xsl.ignoreWhite = true;
_root.brochure_xsl.load(_root.appSettings.XmlDataLocation +"xml/brochure.xsl");

On the event, I trace the results like such:

send_lv.XslContent = _root.brochure_xsl.toString();
trace(send_lv.XslContent);

In the result trace, it converts the snippet to a bullet.

<xsl:text>

*

</xsl:text>

I want it to stay the encoded, is this possible?


Solution

  • Fixed by not using the XML object. Instead just used a URL Loader.