Source Code : JSTL XML XPath: Wired New
Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com.
Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com.
Click Here or search from google with Libraries Name you get jar file related it
JSTL XML XPath: Wired New
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %><%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
<html>
<head>
<title>Reading RSS</title>
</head>
<body>
<c:import var="news"
url="http://www.wired.com/news_drop/netcenter/netcenter.rdf" />
<x:parse var="doc" xml="${news}" />
<table border="1" width="100%">
<tr bgcolor="blue">
<td align="center">
<font color="white" size="+2">
<b>
<x:out select="$doc/rss/channel/title" />
</b>
</font>
<br />
<font color="white" size="-2">
<x:out select="$doc/rss/channel/pubDate" />
</font>
</td>
</tr>
<tr>
<td valign="top">
<x:out select="$doc/rss/channel/description" />
</td>
</tr>
<x:forEach var="story" select="$doc/rss/channel/item">
<tr bgcolor="blue">
<td align="center">
<a href="<x:out select=">">
<font color="white">
<x:out select="title" />
</font>
</a>
</td>
</tr>
<tr>
<td valign="top">
<x:out select="description" />
</td>
</tr>
</x:forEach>
</table>
</body>
</html>
Thank with us