Hi,
what is the best way to parse HTML (coming from servers) in order to automate HTML/HTTP interaction.
i know i can use the internet explorer control, but this seems to be the most expensive way, but also it is convenience, since i can put values in input and submit forms etc.
on the other hand i can use webrequest control to get/post pages, but then i have to parse html my self.
is there something in the middle - not to use all resouce internet explorer control uses (can i hide it, so it will not show anything, or play sound), and anyway is there some control that can allow me to navigate the DOM of an html page without all the GUI?
TIA.
Philipp Sumi - 04 Mar 2004 09:02 GMT
> play sound), and anyway is *there some control that can allow me to
> navigate the DOM of an html page without all the GUI?*
check out this one:
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=B90FDDCE-
E60D-43F8-A5C4-C3BD760564BC
(and don't crosspost please)
hth, philipp
Jesper V. Andersen - 04 Mar 2004 12:41 GMT
SgmlReader or HtmlAgility (you can find both on gotdotnet). They both work
(with a few minor twists) and allow you to navigate just about any HTML
document like it were wellformed XML ...
Regards
Jesper
Hi,
what is the best way to parse HTML (coming from servers) in order to
automate HTML/HTTP interaction.
i know i can use the internet explorer control, but this seems to be the
most expensive way, but also it is convenience, since i can put values in
input and submit forms etc.
on the other hand i can use webrequest control to get/post pages, but then i
have to parse html my self.
is there something in the middle - not to use all resouce internet explorer
control uses (can i hide it, so it will not show anything, or play sound),
and anyway is there some control that can allow me to navigate the DOM of an
html page without all the GUI?
TIA.