Installing Microsoft® Internet Explorer 5.0 and later on the server installs the msxml.dll, which contains all the components of the XML engine, including Microsoft® XML Core Services (MSXML) 5.0 for Microsoft Office, the Extensible Stylesheet Language (XSL) processor, schema support, and so on.
Instantiate the XML control the way you would any other control on the server. For example, from an Active Server Pages (ASP) page you would use code like the following.
var xObj = Server.CreateObject("Msxml2.DOMDocument.5.0");
Alternatively, a server-side object can be used.
<OBJECT RUNAT="server" PROGID="msxml2.DOMDocument.5.0" id="xObj"> </OBJECT>
The xObj
is an empty IXMLDOMDocument/DOMDocument object, ready to build in memory or load from an XML file or XML stream.