Microsoft XML 2.5 SDK


 

getAttribute Method

[This is preliminary documentation and subject to change.]

Gets the value of the named attribute.

Syntax

objValue = oXMLDOMElement.getAttribute(name)

Parameters

name

String specifying the name of the attribute to return.

Returns

Variant. Returns a string that contains the attribute value, or returns the empty string if the named attribute does not have a specified or default value.

Remarks

Another way to retrieve attributes is to use the XMLDOMNamedNodeMap object's getNamedItem method.

Applies To

XMLDOMElement