I\'m trying to select a specific HTML element in a document, for firefox i just use:
xpathobj = document.evaluate(xpath, document, null, XPath
Instead of doing
xmlDoc.load(document);
try
xmlDoc.loadXML(document.body.outerHTML)
This would only really work if your your HTML document is formatted to XHTML standards. Also, the BODY tag would be the root node, so you would have to change your XPATH to "/BODY/DIV[9]/DIV[2]"