Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

%XML.TextReader の使用 3

以下の例をご覧ください。

 // Read all elements within the document
 While (reader.Read()) {
         // ...
 }

これは、文書が正しく解析されたことを確認した後、Read メソッドを呼び出すことで、ドキュメント・モデルの “nodes” の読み取りを順に開始します。

読み取るノードがある限り、Read の返り値は True です。例のコードはドキュメントの最後に到達するまでループします。

FeedbackOpens in a new tab