This project has moved. For the latest updates, please go here.
1
Vote

Cannot parse all li's out of list

description

See this SO issue: http://stackoverflow.com/questions/41689137/html-agility-pack-parsing-error#

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?

comments

ItsAllOk wrote Jan 17 at 4: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 5:28 AM

please close - user error!