hi friend,
copy c.tld and x.tld files under Web-inf folder
and observ carefully here, I've mentioned import JSTL tag to import your xml file for e.g., my xml file name is ForEachDoc.xml then
parse your xml file by using again JSTL tag and store it in a variable called as document. Here I'm using forEach tag for my own task. but that is not required for u. But observe carefully I've used x-path notations inside forEach JSTL tag i.e, $document//a
here $document means, your xml document stored in the document varaible under that I've mentioned
//a this means I'm reading element name is 'a'
in your case u give fn, ln etc., in place of 'a'
read the code, I try my level best to reach this code. In case u didn't get me pls send your personal mail id , I can send complete documentation of JSTL.
<%@ taglib prefix="c" uri="/WEB-INF/c.tld" %>
<%@ taglib prefix="x" uri="/WEB-INF/x.tld" %>
<html>
<head>
<title>JSTL: XML Support -- if</title>
</head>
<body bgcolor="#FFFFFF">
<c:import var="docString" url="ForEachDoc.xml"/>
<x

arse var="document" xml="${docString}"/>
<x:forEach select="$document//a" var="att">
<x:if select="$att/d">
<x

ut select="$att"/><br>
</x:if>
<br></x:forEach>
regards
prabakar