Archive for the ‘CDATA’ Tag

Whitespace and haxe.xml.Fast

I have been excitedly delving into the world of haXe, NME and Jeash over the last month or so. One item that just caught me out was this:-

Don’t have any whitespace either side of your CDATA tags in XML. It will mess up the Fast parsing (at least for the html5 target). If I find a workaround I’ll post it up here….

Bad:-

<title>
<![CDATA[New ideas]]>
</title>

Good:-

<title><![CDATA[New ideas]]></title>

Advertisements