Partager via


isDefaultNamespace method

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

 

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