Compartir a través de


url Property (DOMDocument)

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

Returns the URL for the last loaded XML document.

Script Syntax

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

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 urlString is Null.

Requirements

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

General Remarks

The url property is not updated after saving a document with the save method. To update the url property, 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