Click to return to the XML (Extensible Markup Language) home page    
IXMLDOMElement::getAttrib...     IXMLDOMElement::getElemen...     IXMLDOMElement Interface    
Web Workshop  |  XML (Extensible Markup Language)

IXMLDOMElement::getAttributeNode Method


Retrieves the named attribute node.

Visual Basic Syntax

Set objXMLDOMAttribute = oXMLDOMElement.getAttributeNode(name)

C/C++ Syntax

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

Parameters

name
[in] Name of the attribute to be retrieved.
attributeNode
[out] DOMAttribute 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 when returning null. 
E_INVALIDARG
Value returned if name is null.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.