RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IXMLNode.HasAttribute Method (DOMString)

Indicates whether the node has an attribute with a specified name.

Pascal
function HasAttribute(const Name: DOMString): Boolean; overload;
function HasAttribute(const Name: DOMString; const NamespaceURI: DOMString): Boolean; overload;
C++
__fastcall Boolean HasAttribute(const DOMString Name);
__fastcall Boolean HasAttribute(const DOMString Name, const DOMString NamespaceURI);

Call HasAttribute to determine whether this node has a specified attribute. 

Name is the name of the attribute about which you want to know. 

NamespaceURI is the namespace of the attribute. 

HasAttribute returns true if this node has the specified attribute, false otherwise. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!