How to read HTML with XmlTextReader?

A

Amil

I want to read/parse some simple HTML and look for certain tokens and
content. Can I use a XmlTextReader for this? If not, any other ideas?

Amil
 
G

Guest

Amil,
You can use an XmlTextReader PROVIDED the HTML is "XHTML" - well formed XML.
Otherwise you will need to take a different approach. Two items that come to
mind are the SGMLReader by Chris Lovett of MS, and the HTMLAgilityPack by
Simon Mourier.
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top