Jstl Xml Parse Tag
π
2026-06-18 | π JSTL
# Tag
[JSP Standard Tag Library](#)
The tag is used to parse XML data in the attribute or tag body.
### Syntax Format
<x:parse var="" varDom="" scope="" scopeDom="" doc="" systemId="" filter=""/>
### Attributes
The tag has the following attributes:
| **Attribute** | **Description** | **Required** | **Default** |
| --- | --- | --- | --- |
| var | Variable to hold the parsed XML data | No | None |
| xml | Text content of the document to be parsed (String or Reader) | No | Body |
| systemId | System identifier URI for parsing the document | No | None |
| filter | Filter to be applied to the source document | No | None |
| doc | XML document to be parsed | No | Page |
| scope | Scope of the var attribute | No | Page |
| varDom | Variable to hold the parsed XML data | No | Page |
| scopeDom | Scope of the varDom attribute | No | Page |
* * *
## Example
The following example demonstrates how to parse an XML document:
The code for the books.xml file is as follows:
Padam History ZARA 100 Great Mistry NUHA 2000
The code for the main.jsp file is as follows:
JSTL x:parse TagBooks Info:
The title of the first book is:
The price of the second book:
The result is as follows:
BOOKS INFO:The title of the first book is:Padam History The price of the second book: 2000
* * JSP Standard Tag Library](#)