Export (0) Print
Expand All

Instantiating the XML Control

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.6.0");

Alternatively, a server-side object can be used.

<OBJECT RUNAT="server" PROGID="msxml2.DOMDocument.6.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.

Show:
© 2014 Microsoft