Xml.XMLIntf.IXMLNode.GetAttribute

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetAttribute(const AttrName: DOMString): OleVariant;

C++

virtual System::OleVariant __fastcall GetAttribute(const System::UnicodeString AttrName) = 0 ;

Properties

Type Visibility Source Unit Parent
function public
Xml.XMLIntf.pas
Xml.XMLIntf.hpp
Xml.XMLIntf IXMLNode

Description

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

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.

See Also