Mega Code Archive
Categories
/
Java Tutorial
/
JSTL
Parse XML and Path Select
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
Parse Examples
Please enter an XML file:
A
B
T
88
B
C
D
K
92
A
$doc/students/student/name/first
$doc/students/student[@id=2]/name/first
$doc/students/student[@id=1]/name/first
A
B
T
88
B
C
D
K
92
A
E
F
A
72
C