xpath = document.evaluate('//td/a', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null) xpath.snapshotItem(0) xpath.snapshotItem(1)