# XML "&" AS3 ..CDATA problem?

**URL:** <https://forum.kirupa.com/t/xml-as3-cdata-problem/306740>\
**Category:** flash\
**Created:** [March 21, 2010, 3:52pm UTC](https://forum.kirupa.com/t/xml-as3-cdata-problem/306740 "2010-03-21T15:52:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elementss](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/elementss/32/1698_2.png) [@Elementss](https://forum.kirupa.com/u/Elementss)\
**Post date:** [March 21, 2010, 3:52pm UTC](https://forum.kirupa.com/t/xml-as3-cdata-problem/306740/1 "2010-03-21T15:52:31Z")

</div>

im usin an xml file to import url links to my flash file…

here is an Example link:

```auto

<Link1> http://www.google.co.il/search?hl=iw&q=kirupa&meta=&aq=f&aqi=&aql=&oq=&gs_rfai= </Link1>

```

and im loading the xml file like so:

```auto

var loaderBODY:URLLoader = new URLLoader();
loaderBODY.addEventListener(Event.COMPLETE,loadXMLBODY);
loaderBODY.load(new URLRequest("TXTDATA.XML"));
function loadXMLBODY(e:Event):void {
	
	var xml=new XML(e.target.data);
	var xDoc:XMLDocument = new XMLDocument();
	xDoc.ignoreWhite=true;
	xDoc.parseXML(xml.toXMLString());

```

i load the xml and trace the data i want,  
but in Several Chars like “&”(ampersand) im getting something else:

as i know you need to swich “&” with “&” …

or to use \<[CDATA[[Text Here]]\>

but no matter what i do… All the “&” become & When i Import the xml file to the flash file…

this is the “Forbidden” chars :

```auto
&lt;	<	less than
&gt;	>	greater than
&amp;	&	ampersand 
&apos;	'	apostrophe
&quot;	"	quotation mark

```

My Question is…  
How Do i Get Rid Of This “&” Reaplcing my “&”… ?
