RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IXMLNode.GetAttribute Method

Returns the value of one of this node's attributes.

Pascal
function GetAttribute(const AttrName: DOMString): OleVariant;
C++
__fastcall OleVariant GetAttribute(const DOMString AttrName);

GetAttribute is the read implementation of the Attributes property. 

AttrName is the name of the attribute. 

GetAttribute returns the value of the specified attribute. Typically, this value is a string. If the node does not have an attribute with the name specified by AttrName, GetAttribute returns a Null Variant.

Note: Do not call GetAttribute unless this node is an element node. Only element nodes have attributes.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!