Click to return to the XML (Extensible Markup Language) home page    
XMLDOMElement getAttribut...     XMLDOMElement Object    
Web Workshop  |  XML (Extensible Markup Language)

getAttribute Method


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

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
XMLDOMElement


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.