Showing posts with label dom. Show all posts
Showing posts with label dom. Show all posts

Monday, March 26, 2012

HTML File Parsing

hi,

like xml dom and xmlreader used for working with xml files.

how can i do this with html files.

i want find all the hyperlink tags <a> and change the href
attribute to my own value.

Thanks & Regards
Raja Balaji RI've used regular expressions to parse HTML. The .NET Regular Expression
classes are very powerful.
--
John Saunders
Internet Engineer
john.saunders@.surfcontrol.com

"Raja Balaji R" <rajabalaji_r@.hotmail.com> wrote in message
news:065301c358fc$b88ee040$a501280a@.phx.gbl...
> hi,
> like xml dom and xmlreader used for working with xml files.
> how can i do this with html files.
> i want find all the hyperlink tags <a> and change the href
> attribute to my own value.
> Thanks & Regards
> Raja Balaji R

Saturday, March 24, 2012

HTML DOM Document?

In VB6 I use the DOMDocument (a component) to access the various parts of a HTML webpage like looping through all the <tables>, <a> and <img> and extract the infomation I need.

Is there a DOMDocument object available in ASP.net? Object like HTMLTable, HTMLAnchor, HTMLIMG.

Thanks in advance.