METHOD:  Document::loadXML

This method is a Microsoft extension to the W3C DOM.


The loadXML method is used to load an XML document using the supplied string. It returns the boolean value of true if the load was successful; otherwise it returns false and sets the Document object's documentElement property to null.

Calling loadXML on an existing document immediately discards the content of it.

The following example creates an XML string, and uses the loadXML method to load it. The XML of the root element is then displayed.

Code (VBScript):
XMLString = "<Venues><venue>The Mayflower Theater</venue>" & _
   "<venue>Carnegie Hall</venue></Venues>"

Set objXMLDoc = CreateObject("Microsoft.XMLDOM")
objXMLDoc.async = False

Set Root = objXMLDoc.documentElement

The Mayflower TheaterCarnegie Hall

Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information