Jaa


createElementNS method

Creates an element from the specified namespace.

 

Syntax

HRESULT retVal = object.createElementNS(pvarNS, bstrTag, newElem);

Parameters

  • pvarNS [in]
    Type: VARIANT

    A BSTR value that specifies the URI of the desired namespace.

  • bstrTag [in]
    Type: BSTR

    A BSTR value that contains the name of the desired element.

  • newElem [out, retval]
    Type: HTMLElement

    A reference to the IHTMLElement interface that contains the new element.

Return value

Type: HRESULT

This method can return one of these values.

Return code Description
S_OK

The operation completed successfully.

 

Standards information

Remarks

The IHTMLDocument7::createElementNS method is supported only for XML namespaces.