Xml.XMLDoc.TXMLNode.GetNodeName
Delphi
function GetNodeName: DOMString;
C++
System::UnicodeString __fastcall GetNodeName();
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | protected | Xml.XMLDoc.pas Xml.XMLDoc.hpp |
Xml.XMLDoc | TXMLNode |
説明
ノード名を返します。
TXMLNode オブジェクトの IXMLNode インターフェースを使用すると,プロテクトメソッド GetNodeName を呼び出すことができます。GetNodeName は,基底の DOM ノードの名前を返します。
ノードの名前は,次の表に示すようにノードの型によって異なります。
NodeType | NodeName |
---|---|
ntAttribute |
属性名 |
ntElement |
タグ名 |
ntText |
'#text' |
ntCData |
'#cdata-section' |
ntEntityRef |
エンティティ参照の名前 |
ntEntity |
エンティティ名 |
ntProcessingInstr |
処理命令の対象 |
ntComment |
'#comment' |
ntDocument |
'#document' |
ntDocType |
ドキュメント型名 |
ntDocFragment |
'#document-fragment' |
ntNotation |
表記名 |
メモ: GetPrefix と GetLocalName の両方がノードの値を返す場合,そのノード名はその 2 つの値を組み合わせたものです。