Share via


getAttributeNode Method (Compact 2013)

3/26/2014

Retrieves the attribute node.

Syntax

var objXMLDOMAttribute = oXMLDOMElement.getAttributeNode(name);
HRESULT getAttributeNode(  BSTR name,  IXMLDOMAttribute** attributeNode);

Parameters

Script

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

C/C++

  • 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.

Return Value

Script

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

C/C++

  • 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.

Remarks

This method applies to the following objects and interfaces:

IXMLDOMAttribute and IXMLDOMElement.

Requirements

Header

msxml2.h,
msxml2.idl

Library

uuid.lib

See Also

Reference

XML DOM Methods