DOM: nextsibling problem -
10-20-2004
, 01:48 PM
Hi I've located in my code that the line where I'm reassigning nextSib to
nextSib.nextSibling is causing the error "Object required" in IE6... any
ideas why this isn't working? If not this way, how else can I iterate thru
the nodes between <HEAD> nodes in an XML doc?
Thanks,
Julius
------------------------------------------------------------
var x = xmlDoc.getElementsByTagName('HEAD');
var nextSib = x[j].nextSibling ;
for ( nextSib.nodeName != 'HEAD' )
{
...
nextSib = nextSib.nextSibling
...
} |