Share via


url Property (DOMDocument) (Compact 2013)

3/26/2014

Returns the URL for the last loaded XML document.

Syntax

var objurl = objXMLDOMDocument.url;
HRESULT get_url(
  BSTR* urlString
);

Parameters

Script

None.

C/C++

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

Return Value

Script

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

C/C++

  • S_OK
    Value returned if successful.
  • S_FALSE
    Value returned if there is no URL.
  • E_INVALIDARG
    Value returned if urlString is Null.

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

Requirements

Header

msxml2.h,
msxml2.idl

See Also

Reference

XML DOM Properties
save Method