Thanks Kirk - this works fine via Interop. Cheers, Setven
-----Original Message----- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED]] On Behalf Of Kirk Allen Evans Sent: Friday, July 26, 2002 10:12 AM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] DHTML Document Model in C# > -----Original Message----- > From: Moderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED]]On Behalf Of Erick > Thompson > Sent: Thursday, July 25, 2002 5:32 PM > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] DHTML Document Model in C# > > work. If you go this route, I would like to know if you have any > success in using mshtml without creating a WinForm. I didn't see the post regarding mshtml without a winform, but you should be able to simply use it as a parser through interop. This is VB6 code, but it should work the same in .NET and should not require a UI. Is this similar to what you already tried? If so, what issues did you have? Dim doc As MSHTML.HTMLDocument Dim node As MSHTML.IHTMLElement Set doc = New MSHTML.HTMLDocument doc.body.innerHTML = "<html><head><title>test</title></head><body><h1>Hello,world</h1><span id=""test"">A test</span></body></html>" Set node = doc.getElementById("test") Debug.Print node.innerText Set node = Nothing Set doc = Nothing Kirk Allen Evans http://www.xmlandasp.net "XML and ASP.NET", New Riders Publishing http://www.amazon.com/exec/obidos/ASIN/073571200X You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.