> thisLink=allLinks.iterateNext();
> while (thisLink) {
>
> thisLink=allLinks.href;
Why are you doing this? thisLink is already set by the first line I
quoted. allLinks.href is undefined because allLinks is an
XPathNodeIterator, not a hyperlink. I think this is your problem.
However, I've not tested it -- just guessing.
--
Aaron