I\'m using XPath with Node.js and I have the following HTML document, where I want to select all article nodes and then in a second step all divs with class \"abc\"
You should note that // means search wherever on the page starting from root element while .// means search wherever on the page starting from the current node. So if you want to start search from already found article element you need to replace
"//div[@class='abc']"
with
".//div[@class='abc']"
or
"./div[@class='abc']"
as div is the direct child of article