vb.net - webbrowser get xml document

Hey, I have been trying to switch my code from using an ie object to using a built in webbrowser. Most of the properties are the same but I have run into an issue getting an xmldocument from a page.

'Internet Explorer Object
Dim oXML As Object = oIE.document.XMLDocument
nodeList = oXML.SelectNodes(path).length

Trying this method on webbrowser obviously doesn't work. But does anyone know the path to get the XMLDocument object from webbrowser?

Answers


Figured it out.

WebBrowser1.Document.DomDocument.XMLDocument


Need Your Help

WCF REST Service Template 4.0 “Bad Request”

wcf wcf-binding

I am trying to send a large json string to a WCF Service created with the WCF REST Service Template. If the string is longer 8000 characters I get a "HTTP/1.1 400 Bad Request" error. I have tried...

Exception when using C# wrapper with C API from Java application

java c++ api debugging visual-studio-debugging

I am trying to use C# code from a C API. The C API is actually available from a Java application.