Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











METHOD:  Document::load

This method is a Microsoft extension to the W3C DOM.

Document.load(url)

The load method loads an XML document from the specified location. If the URL cannot be resolved or accessed, or does not reference an XML document, this method returns an error and sets the Document object's documentElement property to null.

The load method can take any object that supports IStream and the IIS Request object. Calling load on an existing document immediately discards the content of it.

Note that Schemas are not applied when loading an XML document from a string.

The following example demonstrates this method.

Code (JavaScript):
xml_doc = new ActiveXObject("Microsoft.XMLDOM");
xml_doc.async = false;
xml_doc.load("staff.xml");



 


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