Forum Moderators: open
myXML = new XML();
myXML.onLoad = function(success) {
if (!success) {
trace("XMLfailed to load");
}else {
trace("load was good");
link1 = myXML.firstChild.childNodes[0].firstChild.nodeValue;
link2 = myXML.firstChild.childNodes[1].firstChild.nodeValue;
}
};
myXML.load("p1/1.xml");
-------------------------------------
and this in xml file
-------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<links>
<link> [bbc.com<...]
</links>
-------------------------------------
but link is not working
what i doing wrong in this xml file?
anybody can help me?