Javatpoint Logo
Javatpoint Logo

JSTL XML <x:parse> Tag

The <x:parse> tag is used for parse the XML data specified either in the tag body or an attribute. It is used for parse the xml content and the result will stored inside specified variable.

The syntax used for including the <x:parse> tag is:

Let's see the simple example to understand the xml <x:parse> tag:

Below examples represent how parse can be used for reading the external XML file and it can be parsed from the body of given document.

Let us put the following content in novels.xml file:

Now put the following content in index.jsp, keeping in the same directory:

Output:

Books Info:

First Book title: Three mistakes of my life

First Book price: 200

Second Book title: Tomorrow land

Second Book price: 2000

JSTL XML Tags2




Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA