# XML Heartache

**URL:** <https://forum.kirupa.com/t/xml-heartache/147798>\
**Category:** Uncategorized\
**Created:** [May 13, 2005, 7:36pm UTC](https://forum.kirupa.com/t/xml-heartache/147798 "2005-05-13T19:36:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Riddler](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@Riddler](https://forum.kirupa.com/u/Riddler)\
**Post date:** [May 13, 2005, 7:36pm UTC](https://forum.kirupa.com/t/xml-heartache/147798/1 "2005-05-13T19:36:21Z")

</div>

Here is my deal. I need to store this outside of flash to be loaded:

```auto
Join us in corporate worship:<br>Sunday Morning at 10:30am<br>Wednesday Night at 7:00pm<br><br><u><a href='http://www.huntcal.com/cgi/calview.cgi/chapel/cell?vm=r&vm=-L' target='_blank'>Cell Groups meet throughout the week</a></u>

```

A text file no worky because it contains a “&” symbol. So I was forced to look into XML (probably for the best anyway, because the organization is unmatched)… Here is what I did:

My .xml file:

```auto

<?xml version="1.0"?>
<rotatorVariables>
	<numbers>
		<num name="topNum" value="6" />
		<num name="rgtNum" value="8" />
		<num name="btmNum" value="6" />
	</numbers>
	<text>
		<display>
			<![CDATA[This is my node's value.]]>
		</display>
	</text>
</rotatorVariables>

```

and my FLA:

```auto

var menuXml:XML = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function(success) {
	if (success) {
		var nums:Array = this.firstChild.firstChild.childNodes;
		for (var i = 0; i<nums.length; i++) {
			trace(nums*.attributes.name);
			trace(nums*.attributes.value);
		}
		var textDis = this.firstChild.childNodes[1].firstChild;
		trace(textDis.nodeName);
		trace(textDis.nodeValue);
	}
};
menuXml.load("rotatorVariables.xml");

```

Everything is great except textDis.nodeValue traces null everytime… I have no idea why it is doing this… it does not in some other example files I was working with… I also tried tracing just “textDis” but that returns the value of it WITH the tags and replaces all symbols with &alt; sytax… that makes it ugly for my getURL I will use down the road… any help would be beautiful 🙂
