Xml.XMLIntf.IXMLNode.GetAttributeNS

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function GetAttributeNS(const AttrName, NamespaceURI: DOMString): OleVariant;

C++

virtual System::OleVariant __fastcall GetAttributeNS(const System::UnicodeString AttrName, const System::UnicodeString NamespaceURI) = 0 ;

プロパティ

種類 可視性 ソース ユニット
function public
Xml.XMLIntf.pas
Xml.XMLIntf.hpp
Xml.XMLIntf IXMLNode

説明

指定した属性の値を返します。

GetAttributeNS メソッドを呼び出すと,属性の名前空間を明示的に指定する必要があるときに属性の値を判別できます。

AttrName は,フェッチする値を持つ属性の名前です。

NamespaceURI は,属性が含まれている名前空間を識別します。

GetAttributeNS メソッドは属性の値を返します。AttrName と NamespaceURI がこのノードの属性を識別しない場合,GetAttributeNS はバリアント型の Null 値を返します。

関連項目