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.