Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

Returns the URL for the last loaded XML document.

Script Syntax

Copy Code
var objurl = objXMLDOMDocument.url;

Remarks

Script Parameters

None.

Script Return Value

String. It returns the URL from the last successful load. If the document is being built in memory, this property returns Null.

C/C++ Syntax

Copy Code
HRESULT get_url(
  BSTR* 
urlString
);

Remarks

C/C++ Parameters

urlString

[out, retval] URL from the last successful load. If the document is being built in memory, this property returns Null.

C/C++ Return Values

S_OK

Value returned if successful.

S_FALSE

Value returned if there is no URL.

E_INVALIDARG

Value returned if urlStringis Null.

Requirements

Header msxml2.h, msxml2.idl
Windows Embedded CE Windows CE .NET 4.0 and later

General Remarks

The urlproperty is not updated after saving a document with the savemethod. To update the urlproperty, reload the document using the load Method.

This member is an extension of the World Wide Web Consortium (W3C) Document Object Model (DOM).

This property is read-only, and applies to the following interface:

DOMDocument

See Also

Concepts

save Method

Other Resources