Share via


namespaces Property (Compact 2013)

3/26/2014

Returns the list of namespaces used in the document as XMLSchemaCache.

Syntax

objXMLDOMSchemaCollection = objIXMLDOMDocument2.namespaces;
HRESULT get_namespaces(
  IXMLDOMSchemaCollection** namespaceCollection
);

Parameters

Script

None.

C/C++

  • namespaceCollection
    [out, retval] Collection of all namespaces for the document.

Return Value

Script

Object. Returns a collection of all namespaces for the document.

C/C++

  • S_OK
    Function succeeded.
  • S_FALSE
    Function failed.
  • E_INVALIDARG
    namespaceCollection is null.

Remarks

If there are no schemas, the property returns an empty collection.

This property applies to the following interface:

XMLSchemaCache/IXMLDOMSchemaCollection.

Requirements

Header

msxml2.h,
msxml2.idl

See Also

Reference

XML DOM Properties