Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

isDefaultNamespace method

Indicates whether or not a namespace is the default namespace for a document.

Document Object Model (DOM) Level 3 Core Specification, Section 1.2Internet Explorer 9

Syntax


HRESULT retVal = object.isDefaultNamespace(pvarNamespace, pfDefaultNamespace);

Parameters

pvarNamespace [in]

Type: VARIANT

The namespace to be compared to the default namespace.

pfDefaultNamespace [out, retval]

Type: VARIANT_BOOL

A pointer to a VARIANT_BOOL that receives one of the following values:

VARIANT_TRUE (true)

The namespace specified in the pfDefaultNamespace parameter is the default namespace for the document.

VARIANT_FALSE (false)

Namespace is not the default.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information

See also

Reference
IHTMLDOMNode3::lookupNamespaceURI
Other Resources
XML Tutorial: Using Namespaces

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.