Hi all:
when I use XPather(a firefox extension) to evaluate the expression:
"/html/body/table[3]/tbody/tr/td[2]/table/tbody/tr/td/div/ul[1]/li"
it tells me there are 7 matching Nodes.
but when I use the following code to do the same thing:
nodes =
document.evaluate("/html/body/table[3]/tbody/tr/td[2]/table/tbody/tr/td/div/ul[1]/li",
document, null,XPathResult. ORDERED_NODE_SNAPSHOT_TYPE , null);
len = nodes.snapshot(0).childNodes.length;
the len returns 2.
so the XPather and firefox javascript returns different results,
generally I think the result of XPather is right. I can't tell why
javascript returns 2 here
Appreciate your help!
the site I test the expression is :
http://www.amazon.com/exec/obidos/AS...667641-1219860