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

createElementNS method

Creates an element from the specified namespace.

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

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 codeDescription
S_OK

The operation completed successfully.

 

Standards information

Remarks

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

 

 

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.