This project has moved and is read-only. For the latest updates, please go here.

Cannot parse all li's out of list


See this SO issue:

In a nutshell, only 4 results are returned for no apparent reason. I'm guessing there's some sort of html in the page which breaks the parsing?


ItsAllOk wrote Jan 17 at 5:32 AM

It would appear that if I just select on the ("//li[contains(@class,'s-result-item')]") I get 21 nodes, but after the 4th node, the nodes parent node loses the id attribute for some reason, even though the node is actually correct. That makes no sense but is probably why it's failing!

ItsAllOk wrote Jan 17 at 6:28 AM

please close - user error!