<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_Tutorial%2FJSTL%2FXML_Path</id>
		<title>Java Tutorial/JSTL/XML Path - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_Tutorial%2FJSTL%2FXML_Path"/>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_Tutorial/JSTL/XML_Path&amp;action=history"/>
		<updated>2026-04-22T09:25:48Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java_Tutorial/JSTL/XML_Path&amp;diff=3383&amp;oldid=prev</id>
		<title> в 17:44, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_Tutorial/JSTL/XML_Path&amp;diff=3383&amp;oldid=prev"/>
				<updated>2010-05-31T17:44:26Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 17:44, 31 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java_Tutorial/JSTL/XML_Path&amp;diff=3384&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_Tutorial/JSTL/XML_Path&amp;diff=3384&amp;oldid=prev"/>
				<updated>2010-05-31T15:23:22Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==  Output XML with Select Statement ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ taglib uri=&amp;quot;http://java.sun.ru/jstl/core&amp;quot; prefix=&amp;quot;c&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;%@ taglib uri=&amp;quot;http://java.sun.ru/jstl/xml&amp;quot;  prefix=&amp;quot;x&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;xml actions&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    This example embeds stuff...&lt;br /&gt;
    &amp;lt;p/&amp;gt;&lt;br /&gt;
    &amp;lt;c:set var=&amp;quot;someXML&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;person&amp;gt;&lt;br /&gt;
        &amp;lt;name&amp;gt;Ruth&amp;lt;/name&amp;gt;&lt;br /&gt;
        &amp;lt;age&amp;gt;29&amp;lt;/age&amp;gt;&lt;br /&gt;
      &amp;lt;/person&amp;gt;&lt;br /&gt;
    &amp;lt;/c:set&amp;gt;&lt;br /&gt;
    &amp;lt;x:parse var=&amp;quot;parsedDocument&amp;quot; xml=&amp;quot;${someXML}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;x:out select=&amp;quot;$parsedDocument/*&amp;quot; /&amp;gt; &lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Parse XML and Path Select ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ taglib uri=&amp;quot;http://java.sun.ru/jstl/core&amp;quot; prefix=&amp;quot;c&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;%@ taglib uri=&amp;quot;http://java.sun.ru/jstl/xml&amp;quot; prefix=&amp;quot;x&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Parse Examples&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;Please enter an XML file:&lt;br /&gt;
  &amp;lt;br /&amp;gt;&lt;br /&gt;
  &amp;lt;form method=&amp;quot;post&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;textarea rows=&amp;quot;10&amp;quot; cols=&amp;quot;50&amp;quot; name=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;students&amp;gt;&lt;br /&gt;
        &amp;lt;student id=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
          &amp;lt;name&amp;gt;&lt;br /&gt;
            &amp;lt;first&amp;gt;A&amp;lt;/first&amp;gt;&lt;br /&gt;
            &amp;lt;last&amp;gt;B&amp;lt;/last&amp;gt;&lt;br /&gt;
            &amp;lt;middle&amp;gt;T&amp;lt;/middle&amp;gt;&lt;br /&gt;
          &amp;lt;/name&amp;gt;&lt;br /&gt;
          &amp;lt;grade&amp;gt;&lt;br /&gt;
            &amp;lt;points&amp;gt;88&amp;lt;/points&amp;gt;&lt;br /&gt;
            &amp;lt;letter&amp;gt;B&amp;lt;/letter&amp;gt;&lt;br /&gt;
          &amp;lt;/grade&amp;gt;&lt;br /&gt;
        &amp;lt;/student&amp;gt;&lt;br /&gt;
        &amp;lt;student id=&amp;quot;2&amp;quot;&amp;gt;&lt;br /&gt;
          &amp;lt;name&amp;gt;&lt;br /&gt;
            &amp;lt;first&amp;gt;C&amp;lt;/first&amp;gt;&lt;br /&gt;
            &amp;lt;last&amp;gt;D&amp;lt;/last&amp;gt;&lt;br /&gt;
            &amp;lt;middle&amp;gt;K&amp;lt;/middle&amp;gt;&lt;br /&gt;
          &amp;lt;/name&amp;gt;&lt;br /&gt;
          &amp;lt;grade&amp;gt;&lt;br /&gt;
            &amp;lt;points&amp;gt;92&amp;lt;/points&amp;gt;&lt;br /&gt;
            &amp;lt;letter&amp;gt;A&amp;lt;/letter&amp;gt;&lt;br /&gt;
          &amp;lt;/grade&amp;gt;&lt;br /&gt;
        &amp;lt;/student&amp;gt;&lt;br /&gt;
      &amp;lt;/students&amp;gt;&lt;br /&gt;
    &amp;lt;/textarea&amp;gt;&lt;br /&gt;
    &amp;lt;br /&amp;gt;&lt;br /&gt;
    &amp;lt;input type=&amp;quot;submit&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;c:if test=&amp;quot;${pageContext.request.method==&amp;quot;POST&amp;quot;}&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;x:parse var=&amp;quot;doc&amp;quot; xml=&amp;quot;${param.xml}&amp;quot;  /&amp;gt;&lt;br /&gt;
    &amp;lt;table border=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;$doc/students/student/name/first&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;&lt;br /&gt;
          &amp;lt;x:out select=&amp;quot;$doc/students/student/name/first&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;/tr&amp;gt;&lt;br /&gt;
      &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;$doc/students/student[@id=2]/name/first&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;&lt;br /&gt;
          &amp;lt;x:out&lt;br /&gt;
          select=&amp;quot;$doc/students/student[@id=2]/name/first&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;/tr&amp;gt;&lt;br /&gt;
      &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;$doc/students/student[@id=1]/name/first&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;&lt;br /&gt;
          &amp;lt;x:out&lt;br /&gt;
          select=&amp;quot;$doc/students/student[@id=12]/name/first&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;/table&amp;gt;&lt;br /&gt;
  &amp;lt;/c:if&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Parse XML With XPath Expression ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ taglib uri=&amp;quot;http://java.sun.ru/jstl/core&amp;quot; prefix=&amp;quot;c&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;%@ taglib uri=&amp;quot;http://java.sun.ru/jstl/xml&amp;quot;  prefix=&amp;quot;x&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;xml actions&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    This example parses XML and uses an XPath expression...&lt;br /&gt;
    &amp;lt;p/&amp;gt;&lt;br /&gt;
    &amp;lt;c:set var=&amp;quot;someXML&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;people&amp;gt;&lt;br /&gt;
        &amp;lt;person&amp;gt;&lt;br /&gt;
          &amp;lt;name&amp;gt;Mark&amp;lt;/name&amp;gt;&lt;br /&gt;
          &amp;lt;age&amp;gt;30&amp;lt;/age&amp;gt;&lt;br /&gt;
        &amp;lt;/person&amp;gt;&lt;br /&gt;
        &amp;lt;person&amp;gt;&lt;br /&gt;
          &amp;lt;name&amp;gt;Ruth&amp;lt;/name&amp;gt;&lt;br /&gt;
          &amp;lt;age&amp;gt;29&amp;lt;/age&amp;gt;&lt;br /&gt;
        &amp;lt;/person&amp;gt;&lt;br /&gt;
      &amp;lt;/people&amp;gt;&lt;br /&gt;
    &amp;lt;/c:set&amp;gt;&lt;br /&gt;
    &amp;lt;x:parse var=&amp;quot;parsedDocument&amp;quot; xml=&amp;quot;${someXML}&amp;quot; /&amp;gt;&lt;br /&gt;
    Here is a list of people:&lt;br /&gt;
    &amp;lt;ul&amp;gt;&lt;br /&gt;
      &amp;lt;x:forEach select=&amp;quot;$parsedDocument/people/person&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt; &amp;lt;x:out select=&amp;quot;name&amp;quot; /&amp;gt; &amp;lt;/li&amp;gt;&lt;br /&gt;
      &amp;lt;/x:forEach&amp;gt;&lt;br /&gt;
    &amp;lt;/ul&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Set Variable by Selecting XML Path ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ taglib uri=&amp;quot;http://java.sun.ru/jstl/core&amp;quot; prefix=&amp;quot;c&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;%@ taglib uri=&amp;quot;http://java.sun.ru/jstl/xml&amp;quot; prefix=&amp;quot;x&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Set Examples&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;c:import var=&amp;quot;students&amp;quot; url=&amp;quot;students.xml&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;x:parse var=&amp;quot;doc&amp;quot; xml=&amp;quot;${students}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;x:set var=&amp;quot;a&amp;quot; select=&amp;quot;$doc/students/student/name/first&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;x:set var=&amp;quot;b&amp;quot;&lt;br /&gt;
    select=&amp;quot;$doc/students/student[@id=2]/name/first&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;x:set var=&amp;quot;c&amp;quot;&lt;br /&gt;
    select=&amp;quot;$doc/students/student[@id=1]/name/first&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;table border=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;$doc/students/student/name/first&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;&lt;br /&gt;
          &amp;lt;x:out select=&amp;quot;$a&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;/tr&amp;gt;&lt;br /&gt;
      &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;$doc/students/student[@id=2]/name/first&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;&lt;br /&gt;
          &amp;lt;x:out select=&amp;quot;$b&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;/tr&amp;gt;&lt;br /&gt;
      &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;$doc/students/student[@id=1]/name/first&amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;td&amp;gt;&lt;br /&gt;
          &amp;lt;x:out select=&amp;quot;$c&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;/table&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Use ForEach Loop to Select XML Path ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ taglib uri=&amp;quot;http://java.sun.ru/jstl/core&amp;quot; prefix=&amp;quot;c&amp;quot; %&amp;gt;&amp;lt;%@ taglib uri=&amp;quot;http://java.sun.ru/jstl/xml&amp;quot; prefix=&amp;quot;x&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;For Each Examples&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;c:import var=&amp;quot;students&amp;quot; url=&amp;quot;students.xml&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;x:parse var=&amp;quot;doc&amp;quot; xml=&amp;quot;${students}&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;table border=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;tr&amp;gt;&lt;br /&gt;
        &amp;lt;TH&amp;gt;First&amp;lt;/th&amp;gt;&lt;br /&gt;
        &amp;lt;TH&amp;gt;Last&amp;lt;/th&amp;gt;&lt;br /&gt;
        &amp;lt;TH&amp;gt;Points&amp;lt;/th&amp;gt;&lt;br /&gt;
        &amp;lt;TH&amp;gt;Letter&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;/tr&amp;gt;&lt;br /&gt;
      &amp;lt;x:forEach var=&amp;quot;student&amp;quot; select=&amp;quot;$doc/students/student&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;tr&amp;gt;&lt;br /&gt;
          &amp;lt;td&amp;gt;&lt;br /&gt;
            &amp;lt;x:out select=&amp;quot;name/first&amp;quot; /&amp;gt;&lt;br /&gt;
          &amp;lt;/td&amp;gt;&lt;br /&gt;
          &amp;lt;td&amp;gt;&lt;br /&gt;
            &amp;lt;x:out select=&amp;quot;name/last&amp;quot; /&amp;gt;&lt;br /&gt;
          &amp;lt;/td&amp;gt;&lt;br /&gt;
          &amp;lt;td&amp;gt;&lt;br /&gt;
            &amp;lt;x:out select=&amp;quot;grade/points&amp;quot; /&amp;gt;&lt;br /&gt;
          &amp;lt;/td&amp;gt;&lt;br /&gt;
          &amp;lt;td&amp;gt;&lt;br /&gt;
            &amp;lt;x:out select=&amp;quot;grade/letter&amp;quot; /&amp;gt;&lt;br /&gt;
          &amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;/tr&amp;gt;&lt;br /&gt;
      &amp;lt;/x:forEach&amp;gt;&lt;br /&gt;
    &amp;lt;/table&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Use JSTL to output and extract XML element with XPATH ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ taglib uri=&amp;quot;http://java.sun.ru/jstl/core&amp;quot; prefix=&amp;quot;c&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;%@ taglib uri=&amp;quot;http://java.sun.ru/jstl/xml&amp;quot;  prefix=&amp;quot;x&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;xml actions&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    This example uses XPath and the x:out action to extract the&lt;br /&gt;
    user&amp;quot;s name from a piece of XML.&lt;br /&gt;
    &amp;lt;p/&amp;gt;&lt;br /&gt;
    &amp;lt;c:set var=&amp;quot;someXML&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;person&amp;gt;&lt;br /&gt;
        &amp;lt;name&amp;gt;Ruth&amp;lt;/name&amp;gt;&lt;br /&gt;
        &amp;lt;age&amp;gt;29&amp;lt;/age&amp;gt;&lt;br /&gt;
      &amp;lt;/person&amp;gt;&lt;br /&gt;
    &amp;lt;/c:set&amp;gt;&lt;br /&gt;
    &amp;lt;x:parse var=&amp;quot;parsedDocument&amp;quot; xml=&amp;quot;${someXML}&amp;quot; /&amp;gt;&lt;br /&gt;
    The person&amp;quot;s name is &amp;lt;x:out select=&amp;quot;$parsedDocument//name&amp;quot; /&amp;gt; &lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>