Xml.XMLDoc.TXMLNode.HasAttribute

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function HasAttribute(const Name: DOMString): Boolean; overload;
function HasAttribute(const Name, NamespaceURI: DOMString): Boolean; overload;

C++

bool __fastcall HasAttribute(const System::UnicodeString Name)/* overload */;
bool __fastcall HasAttribute(const System::UnicodeString Name, const System::UnicodeString NamespaceURI)/* overload */;

Properties

Type Visibility Source Unit Parent
function protected
Xml.XMLDoc.pas
Xml.XMLDoc.hpp
Xml.XMLDoc TXMLNode

Description

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

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.

See Also


Code Examples