Export (0) Print
Expand All

AddNamespace method

Enables an MSHTML host to add namespaces.

Syntax


HRESULT retVal = object.AddNamespace(bstrNamespace, bstrUrn, lFlags, pvarFactory);

Parameters

bstrNamespace [in]

Type: BSTR

A BSTR that specifies the namespace to create.

bstrUrn [in]

Type: BSTR

A BSTR that specifies the URN of the namespace. If there is no URN, this is set to NULL.

lFlags [in]

Type: LONG

NULL

Default. Creates a namespace.

ELEMENTNAMESPACEFLAGS_ALLOWANYTAG

Creates a namespace that allows any tag to be added.

ELEMENTNAMESPACEFLAGS_QUERYFORUNKNOWNTAGS

If this flag is specified, MSHTML invokes QueryInterface for the IElementNamespaceFactoryCallback interface and the IElementNamespaceFactoryCallback::Resolve method.

pvarFactory [in]

Type: VARIANT

The address of a VARIANT of type VT_UNKNOWN that contains the IUnknown interface for the implementation of the element behavior. This parameter is the IElementNamespaceFactory implementation, and callback, if appropriate.

Return value

Type: HRESULT

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

 

 

Community Additions

ADD
Show:
© 2014 Microsoft