Share via


url Property (DOMDocument) (Windows Embedded CE 6.0)

1/6/2010

Returns the URL for the last loaded XML document.

Script Syntax

var objurl = objXMLDOMDocument.url;

Remarks

Ee503484.collapse(en-US,WinEmbedded.60).gifScript Parameters

None.

Ee503484.collapse(en-US,WinEmbedded.60).gifScript Return Value

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

Ee503484.collapse(en-US,WinEmbedded.60).gifC/C++ Syntax

HRESULT get_url(
  BSTR* urlString
);

Remarks

Ee503484.collapse(en-US,WinEmbedded.60).gifC/C++ Parameters

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

Ee503484.collapse(en-US,WinEmbedded.60).gifC/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.

Ee503484.collapse(en-US,WinEmbedded.60).gifRequirements

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

Reference

XML DOM Properties

Concepts

save Method

Other Resources