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
XMLDOMDocument