Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In C#.net, how can I parse HTML?

I have a webbrowser control. I navigate it to some address. When it loaded i want to pick only urls from inside this codes. Is it possible to handle the html like xml? If it is possible i can use othe DOM properties too. Any xml like ingredient container object to pass the html into it? Thank you.

like image 461
Caglar Or Avatar asked Apr 08 '26 12:04

Caglar Or


1 Answers

Sounds like you need to use the HTML agility pack

Also see this other stack overflow question:

C# Is there a LINQ to HTML, or some other good .Net HTML manipulation API?

like image 57
Doctor Jones Avatar answered Apr 11 '26 01:04

Doctor Jones