This article is a mirror article of machine translation, please click here to jump to the original article.

View: 20324|Reply: 1

[Source] HtmlAgilityPack parses html5's xpath node with an error

[Copy link]
Posted on 8/4/2016 4:55:36 PM | | | |

XPath node, I copied it with a 360 browser, and then let HtmlAgilityPack parse the parsing node as follows:



It will throw an exception, the reason for the exception, that is, the wood has found this node, and then, debug, HtmlAgilityPack has obtained the source code of the web page, why, it is not found?

At first, I wondered if the browser took the wrong xpath node, or Google Chrome tried it, and found that the node is the same as the 360 browser node, why can't it be obtained???

The modified values are as follows:



I found that I can't even get the html node?????

Finally, it is modified as follows:



The value is successfully retrieved, probably because the page is made of HTML5.

The source code of the webpage is as follows:



It can also be regarded as an HtmlAgilityPack that is not compatible with html5 page values, and it can also be said to be a bug.






Previous:spring.net Could not load type from string value 'xxx...
Next:Html Agility Pack Download and How to Use It
 Landlord| Posted on 3/1/2017 5:16:32 PM |
Html Agility Pack Download and How to Use It
http://www.itsvse.com/thread-3015-1-1.html
(Source: Architect)
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com