Share via


getAttributeNode Method (Windows CE 5.0)

Send Feedback

Retrieves the attribute node.

[Script]

Script Syntax

var objXMLDOMAttribute=oXMLDOMElement.getAttributeNode(name);

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++]

C/C++ Syntax

HRESULT getAttributeNode(BSTRname,IXMLDOMAttribute** attributeNode);

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

OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.
Link Library: Uuid.lib.

General Remarks

This method applies to the following objects and interfaces:

IXMLDOMAttribute and IXMLDOMElement.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.