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

4 comments so far

  1. aduros on

    Hmm, could you please submit this issue to http://code.google.com/p/haxe/issues/list ?

  2. aduros on

    Hmm, could you please submit this to http://code.google.com/p/haxe/issues/list ?

  3. sambrick on

    Will do, I’ll detail it a little more too.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: