# XML Parsing Issue

**URL:** <https://forum.kirupa.com/t/xml-parsing-issue/176793>\
**Category:** flash\
**Created:** [January 26, 2006, 11:02pm UTC](https://forum.kirupa.com/t/xml-parsing-issue/176793 "2006-01-26T23:02:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![borispc](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@borispc](https://forum.kirupa.com/u/borispc)\
**Post date:** [January 26, 2006, 11:02pm UTC](https://forum.kirupa.com/t/xml-parsing-issue/176793/1 "2006-01-26T23:02:43Z")

</div>

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!
