Xml.XMLDoc.TXMLNode.HasAttribute

De RAD Studio API Documentation
Aller à : navigation, rechercher

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 */;

Propriétés

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

Description

Indique si le noeud possède un attribut portant un nom spécifié.

Utilisez l'interface IXMLNode de l'objet TXMLNode pour appeler la méthode HasAttribute protégée.

Name est le nom de l'attribut qui vous intéresse.

NamespaceURI représente l'espace de nommage de l'attribut.

HasAttribute renvoie true si ce noeud possède l'attribut spécifié, false sinon.

Voir aussi