Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Instantiating the XML Control

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:
© 2015 Microsoft