checking with actual files
I've begun using standard XML for testing (Moreover.com). I
I've come up with a new script, but I think it still needs some error correction. It's working well; rather quickly parses.
Take a look:
Code:
//
function doXML(whichXML, x) {
while (whichXML[x].hasChildNodes) {
whichXML[x].ignoreWhite = true;
if (String(whichXML[x].nodeName) == "null" | String(whichXML[x].nodeName) == "") {
whichXML[x].removeNode();
c--;
}
v = (whichXML[x].nodeName+"_"+c);
this[v] = whichXML[x].firstChild.nodeValue;
doXML(whichXML[x].childNodes, 1);
x++;
}
c++;
}
//
//
theXML = theXML.childNodes[2].childNodes;
doXML(theXML, 1);
//
enjoy
tutash
[Edited by tutash on 08-16-2002 at 03:29 PM]