Click to return to the XML (Extensible Markup Language) home page    
XMLDOMDocument save Metho...     XMLDOMDocument validateOn...     XMLDOMDocument Object    
Web Workshop  |  XML (Extensible Markup Language)

url Property


Returns the canonicalized URL for the last loaded XML document.

Syntax

strValue = oXMLDOMDocument.url

Remarks

String. The property is read-only. It returns the URL from the last successful load. If the document is being built in memory, this property returns null.

The url property is not updated after saving a document with the save method. To update the url property in this case, reload the document using the load method.

This member is an extension of the W3C DOM.

Example

The following VBScript example creates an XMLDOMDocument object and displays the value of its url property:

Dim xmlDoc

Set xmlDoc = CreateObject("microsoft.xmldom") 
xmlDoc.async = False
xmlDoc.load("c:\books.xml")
MsgBox (xmlDoc.url)

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
XMLDOMDocument


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.