------------PART ONE------------------
if(navigator.appName == "Netscape"){
xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET",xmlfile , false);
xmlHttp.send(null);
docObj = xmlHttp.responseXML;
var objNodesname = docObj.getElementsByTagName("name");
}else{
var docObj = new ActiveXObject("MSXML.DOMDocument");
docObj.load(xmlfile);
var objNodesname = docObj.getElementsByTagName("name");
}
------------PART TWO------------------
for (i = 0 ; i < objNodesnames.length ; i++) {
if(navigator.appName == "Netscape"){
objcurrent=objNodesnames.item(i);
myceltext=objcurrent.childNodes.item(0);
currenttext=document.createTextNode(myceltext.data);
lstring=currenttext.data;
lstring=lstring.substr(4)
lstringcode=lstring.substr(0,4)
}else{
lstring=objNodesnames.item(i).text;
lstringcode=lstring.substr(0,4);
lstring=lstring.substr(4);
}