Parsing HTML using Xpath with Javascript
问题 In .NET there is a lovely library that allows me to easily parse an external html page using xpath queries (HTML Agility Project) - the problem is I have to do that client-side, so only javascript. Is there any way to do that? 回答1: jQuery also supports xPath selector as well CSS, you can get more information from the link below. http://docs.jquery.com/DOM/Traversing/Selectors 回答2: You can try it https://github.com/andrejpavlovic/xpathjs Actually there are a lot of it and there is an window