# XML CDATA issue

**URL:** <https://forum.kirupa.com/t/xml-cdata-issue/268168>\
**Category:** flash\
**Created:** [August 11, 2008, 5:31am UTC](https://forum.kirupa.com/t/xml-cdata-issue/268168 "2008-08-11T05:31:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mightyRGB](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@mightyRGB](https://forum.kirupa.com/u/mightyRGB)\
**Post date:** [August 11, 2008, 5:31am UTC](https://forum.kirupa.com/t/xml-cdata-issue/268168/1 "2008-08-11T05:31:47Z")

</div>

Hi all,

I’m having an issue with Flash/AS3 where my CDATA is not being recognized by the xml parser in situations where the cdata is located in an element that has one or more nodes.

for example, I can see all of the text within the CDATA block when I set a textArea’s htmlText to myXML.sentence

(myXml)

```auto

<text>
<sentence>
<![CDATA[Here is a bunch of text. And here is a little more: <, >, &, " and ' with no problem. Expecting a third line? Neither was I!]]>
</sentence>
</text>

```

however, when I add a node or two within the , element, the compiler doesn’t read the the CDATA at all.

```auto

<text>
<sentence>
<someNode>This is the only thing that will show up now.</someNode>
<![CDATA[Here is a bunch of text. And here is a little more: <, >, &, " and ' with no problem. Expecting a third line? Neither was I!]]>
</sentence>
</text>

```

Can anyone explain what is going on here and/or how I can solve this issue?

Thanks in advance,

mightyRGB
