Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT
  Features
      Ask DevGuru
      ASP Resources
      HTML Color Chart
      Find the Bug
      Knowledge Base
      Links
      Tips of the Week
      T-SQL Syntax Charts
      Tutorials
  Products
      dgCalendar
      dgCharge
      dgChart
      dgEncrypt
      dgFileUpload
      dgReport
      dgSort
      dgTree
  Site
      Authoring
      Coming Soon
      DevGuru Resume
      Errata
      Link to Us
      Merchandise
      Sponsorships
      Testimonials
      What's New
  Partners
      Code Project
      DevelopersDex
      Prog. Heaven
      Tek-Tips Forum
      TopXML
      VBXML.COM
      VisualBuilder.com
      W3Schools
      XMLPitstop
      ZVON.org
      Search Us!

       











PROPERTY:  Document::url

This property is a Microsoft extension to the W3C DOM.

Document.url

The url property contains the canonicalized URL for the last loaded XML document. If the document is being built in memory, it returns null. The url property is not updated after saving a document using the save method; to do this, reload the document with the load method.

To demonstrate, the following code loads the 'staff.xml' file and displays its url.

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

document.write(xml_doc.url);

Output:
http://www.devguru.com/somedir/staff.xml





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