Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys.,,,

Can Anybody Explain me , What is the Exact Use of the HTML Agility Pack?. I know how to use it but i am not getting why to use.

Thanks In Advance.......
Posted
Comments
DamithSL 18-Sep-15 5:23am    
if you already using it then for which purpose you used it? is there any other alternatives you can use instead of it? have you read the details of https://htmlagilitypack.codeplex.com/ ?

1 solution

This is an agile HTML parser that builds a read/write DOM and supports plain XPATH or XSLT (you actually don't HAVE to understand XPATH nor XSLT to use it, don't worry...). It is a .NET code library that allows you to parse "out of the web" HTML files. The parser is very tolerant with "real world" malformed HTML. The object model is very similar to what proposes System.Xml, but for HTML documents (or streams).

Html Agility Pack now supports Linq to Objects (via a LINQ to Xml Like interface). Check out the new beta to play with this feature

Sample applications:

Page fixing or generation. You can fix a page the way you want, modify the DOM, add nodes, copy nodes, well... you name it.

Web scanners. You can easily get to img/src or a/hrefs with a bunch XPATH queries.

Web scrapers. You can easily scrap any existing web page into an RSS feed for example, with just an XSLT file serving as the binding. An example of this is provided.
 
Share this answer
 
Comments
satheesh 4 18-Sep-15 5:47am    
Thanks Mr.F-ES Sitecore

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900