Share via


getAttribute Method

Retrieves the value of the attribute.

objValue = oXMLDOMElement.getAttribute(name);

HRESULT getAttribute(
  BSTR name,
  VARIANT* value
);

General Remarks

You can also retrieve attributes by using the getNamedItem method of the IXMLDOMNamedNodeMap.

This method applies to the following objects and interfaces:

IXMLDOMElement and IXMLDOMNamedNodeMap.

See Also

getNamedItem Method

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.