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

createAttributeNS method

Creates a reference to an attribute object that is associated with an XML namespace.

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

Syntax


HRESULT retVal = object.createAttributeNS(pvarNS, bstrAttrName, ppAttribute);

Parameters

pvarNS [in]

Type: VARIANT

A VARIANT value that contains the name of the desired namespace or a NULL value if no namespace is desired.

bstrAttrName [in]

Type: BSTR

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

ppAttribute [out, retval]

Type: IHTMLDOMAttribute

A reference to an IHTMLDOMAttribute2 object that contains the new attribute.

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::createAttributeNS method is supported only for XML documents.

See also

IHTMLDocument7::createAttribute

 

 

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.