Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates an element from the specified namespace.
![]() ![]() |
Syntax
HRESULT retVal = object.createElementNS(pvarNS, bstrTag, newElem);
Parameters
pvarNS [in]
Type: VARIANTA BSTR value that specifies the URI of the desired namespace.
bstrTag [in]
Type: BSTRA BSTR value that contains the name of the desired element.
newElem [out, retval]
Type: HTMLElementA 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.