Scripting and DOM

Once the MSXML ActiveX object has been registered, any scripting language can be used to access the properties and methods of the interfaces.

Using the C++ DSO

The C++ DSO was used in all the examples given in the interface section. For more information on using DSOs, see Chapter 21.

Using the Microsoft XMLDOM ActiveX Data Object (ADO)

The XMLDOM ActiveX Data Object can be imported into JavaScript pages and VBScript pages. On the client side, this will work only in IE5. On the server side, this will work in any server that supports Active Server Pages 2.0 or better.

JavaScript Syntax

An instance of the parser object and DOM engine is created using the following syntax:

 var oXDOM oXDOM=new ActiveXObject("Microsoft.XMLDOM") ...

Get XML Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.