Dim objDOM
Dim blnOutput
objDOM = Server.CreateObject("MSXML2.DOMDocument.4.0")
blnOutput = objDOM.Load(Server.MapPath(XMLFileName))
blnOutput = objDOM.Load(StringXML)
The main difference between Load and LoadXML is that the Load takes XML file as input while LoadXML takes the XML string itself as input. Both Load and LoadXML returns a boolean value indicating if the XML was loaded successfully or not into the DOM.
Last line should be:
ReplyDeleteblnOutput = objDOM.LoadXML(StringXML)