Partager via


getAttributeNode Method

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

Retrieves the attribute node.

Script Syntax

var objXMLDOMAttribute = oXMLDOMElement.getAttributeNode(name);

Remarks

Script Parameters

  • name
    String specifying the name of the attribute to be retrieved.

Script Return Value

Object. Returns IXMLDOMAttribute with the supplied name, or Null if the named attribute cannot be found on this element.

C/C++ Syntax

HRESULT getAttributeNode(
  BSTR name,
  IXMLDOMAttribute** attributeNode
);

Remarks

C/C++ Parameters

  • name
    [in] Name of the attribute to be retrieved.
  • attributeNode
    [out, retval] IXMLDOMAttribute object that is returned with the supplied name, or Null if the named attribute cannot be found on this element.

C/C++ Return Values

  • S_OK
    Value returned if successful.
  • S_FALSE
    Value returned when no attribute with the given name is found.
  • E_INVALIDARG
    Value returned if name is Null.

Requirements

Header msxml2.h, msxml2.idl
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.0 and later

General Remarks

This method applies to the following objects and interfaces:

IXMLDOMAttribute and IXMLDOMElement.