< Back

Document Subject: Microsoft.XMLDOM deprecated replaced by MSXML2.ServerXMLHTTP
Hint Short Cut: Add this to your code & documentation to help you find this page.
http://#GrabHTML or http://A555F9/nn.nsf/ByAlias/GrabHTML

I have some code that grabs the content from a web page, that runs every hour on a XP box running Notes 6.5. I tried re-using my code on a 8.5 server on Windows Server 2003 and it didn't work.




Old Code:

Set source = CreateObject("Microsoft.XMLDOM")
source.async = False
source.load("http://AdFos.com";)
feed = source.xml

 

New Code

Dim xmlHTTP As Varian
Dim strHTTPReturn As String

Set xmlHTTP = CreateObject("MSXML2.ServerXMLHTTP")

xmlHTTP.open "GET", "http://AdFos.com";
xmlHTTP.Send
feed = xmlHTTP.responseText

 

might save someone sometime.