| || |
Saving an xml file
I have a utility that will pull the xml and display it in the browser. It works fine and I can use it in my script. What I want to do is save the xml displayed in the browser to a file.
I am using the following code:
Dim objXMLHTTP, xml, doc
Set xml = CreateObject("Microsoft.XMLHTTP")
xml.Open "GET", "https://mywebsite.mywebsite.net/webpage/util/getxml.asp", False
Set doc = XMLUtil.CreateXML()
Set xml = Nothing
Set doc = Nothing
I am getting an error:
Failed to load the XML string.
Check if the XML string is valid.
Any suggestions on what is wrong?
Thanks for the help.
Re: Saving an xml file
Works fine on my machine.
Check that responseText is well formatted and starts from
<?xml version="1.0" encoding="utf-8"?>