Microsoft XML SDK 2.6 - XML Reference

getAttribute Method

Gets the value of the named attribute.

objValue = oXMLDOMElement.getAttribute(name)

Parameters

name
String specifying the name of the attribute to return.

Return Value

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.

See Also

Applies To: XMLDOMElement Object