Jsp-jstl-xml-parse-tag
提供:Dev Guides
JSTL-XML <x:parse>タグ
属性
Attribute | Description | Required | Default |
---|---|---|---|
var | A variable that contains the parsed XML data | No | None |
xml | Text of the document to parse (String or Reader) | No | Body |
systemId | The system identifier URI for parsing the document | No | None |
filter | The filter to be applied to the source document | No | None |
doc | XML document to be parsed | No | Page |
scope | Scope of the variable specified in the var attribute | No | Page |
varDom | A variable that contains the parsed XML data | No | Page |
scopeDom | Scope of the variable specified in the varDom attribute | No | Page |
例
次の例は、解析を使用して外部XMLファイルを読み取る方法を示しています-
特定のドキュメントの本文からXMLを解析する方法を見てきました。 books.xml ファイルに次のコンテンツを入れてみましょう-
今、同じディレクトリに保存し、次のmain.jspを試してください-