RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNode.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);

Use the TXMLNode object's IXMLNode interface to call the protected HasAttribute method.  

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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!