RE: Parse HTML DOM document in console application
From: Rowland Shaw (RowlandShaw_at_discussions.microsoft.com)
Date: 10/05/04
- Next message: Bonj: "impersonation in web application"
- Previous message: jherl: "re:ISynchronizeInvoke - Object reference not set to an instance"
- In reply to: John Williams: "Parse HTML DOM document in console application"
- Next in thread: John Williams: "Re: Parse HTML DOM document in console application"
- Reply: John Williams: "Re: Parse HTML DOM document in console application"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 5 Oct 2004 04:01:02 -0700
You may be interested in this article, albeit with examples in C#
http://www.vsj.co.uk/articles/display.asp?id=389
"John Williams" wrote:
> How do I load a HTML page (via URL) and parse the DOM in a Console
> Application?
>
> I've successfully done all this in a Windows Application by using the
> WebBrowser control, calling the Navigate method on the specified URL, and
> then, within the DocumentComplete event, parsing the HTML page using
> mshtml.HTMLDocument.
>
> I'm writing it as a console app because I don't need to display the HTML,
> just search for a specific tag and retrieve a href value from it.
>
> Thanks for any help on this.
>
>
>
>
- Next message: Bonj: "impersonation in web application"
- Previous message: jherl: "re:ISynchronizeInvoke - Object reference not set to an instance"
- In reply to: John Williams: "Parse HTML DOM document in console application"
- Next in thread: John Williams: "Re: Parse HTML DOM document in console application"
- Reply: John Williams: "Re: Parse HTML DOM document in console application"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|