Xml.Win.msxmldom.LoadFromXMLString

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

Delphi

function LoadFromXMLString(const Doc: IXMLDOMDocument; const XML: string): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall LoadFromXMLString(const _di_IXMLDOMDocument Doc, const System::UnicodeString XML);

プロパティ

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

説明

XML 形式の文字列から DOM ドキュメントを読み込みます。 XML 形式の文字列を TMSDOMDocument インスタンス内に読み込むには、以下のコードを使用できます。

 // Doc is a TMSDOMDocument
 Doc := TMSDOMDocument.Create(CreateDOMDocument);
 LoadFromXMLString(Doc.MSDocument, '<t>v</t>');

あるいは、以下のコードを使用することもできます。

 // Doc is a TMSDOMDocument
 Doc := TMSDOMDocument.Create(CreateDOMDocument);
 Doc.MSDocument.loadXML('<r>s</r>');

関連項目