Home > Uncategorized > Html Agility Xpath Finder

Html Agility Xpath Finder

Html Agility pack’s xpath does not seem to match firebug or google or IE xpath implementation so I wrote a little app to help find the xpath using the actual agility pack xpath engine. You can open an url using ctrl-u or clicking on file->open url. Once the url is open you can either type in a string to search in the find box or you can highlight the text in the browser and hit ctrl-k or go to search->find selection. You can only highlight text. In window I have labeled C will be list of xpath where that term appears in the outerHtml. The path highlighted in green is the lowest level xpath were the term appears. You can double click on any of the xpaths to display that particular path in the browser. This program need .net 4.0.

Html Agility Xpath (800)

 

Categories: Uncategorized Tags:
  1. Coder
    February 18th, 2012 at 14:24 | #1

    Firstly an awesome utility. Thanks for sharing it.

    Have you set any options on the HtmlAgilityPack.HtmlDocument class such as OptionOutputAsXml? Reason being the xpath query returned by your utility does not find the same element when I use it in my class on the same url.

  2. March 12th, 2014 at 00:11 | #3

    Thank you very much for sharing your tool . It’s really helpful for my project . Thank you again

  1. No trackbacks yet.


− 2 = four