Code for XML in Symbol

Sorry, my first post was in the other thread and it should have been here…anyways…

Below is the XML text I use, it works on a keyframe perfectly but when I try to put it into a symbol in the keyframe it does not work?
can anyone help please?


function loadXML(loaded) {
if (loaded) {

_root.home2 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.homemain_txt.text = _root.home2;
} else {
trace(“file not loaded!”);
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(“sitetext.xml”);