Hello!
I got a weird issue going on…
my XML is being parsed without respecting any CDATA tags.
the XML looks like this (let’s call it blog.xml):
<?xml version=“1.0” encoding=“UTF-8”?>
<blog>
<entry>
<title><![CDATA[BLOG ENTRY TITLE]]></title>
<date><![CDATA[FEB 26th]]></date>
<body><![CDATA[<P>BLOG ENTRY BODY</P>]]></body>
</entry>
</blog>
AS looks like this:
x = new XML();
x.onLoad = function(success){
if (success) {
trace(this);
}
}
x.load(“blog.xml”);
TRACE looks like this:
<?xml version=“1.0” encoding=“UTF-8”?><blog><entry><title>BLOG ENTRY TITLE</title><date>FEB 26th</date><body><P>BLOG ENTRY BODY</P></body></entry></blog>
So CDATA is ignored since html entities are not preserved as they are in the raw XML…
What’s going on?
PS: I tried using onData and parseXML but I get the same result. I’m publishing for 7 but I get the same result for 6 and 8.
Thanks yo’ all!