This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes display xml in jsp - urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "display xml in jsp - urgent" Watch "display xml in jsp - urgent" New topic
Author

display xml in jsp - urgent

palukuri nag
Greenhorn

Joined: Oct 31, 2002
Posts: 12
hai,
I have one xml file
----
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE News_Events SYSTEM "main.dtd">
<News_Events>
<record recID="1">
<Nev_Head>Head</Nev_Head>
<Nev_Desc>Desc</Nev_Desc>
<Nev_Apper_On>W</Nev_Apper_On>
</record>
<record recID="2">
<Nev_Head>Head1</Nev_Head>
<Nev_Desc>Desc1</Nev_Desc>
<Nev_Apper_On>H</Nev_Apper_On>
</record>
</News_Events>
----
and a DTD file
--
<!ELEMENT News_Events (record+)>

<!ELEMENT record (Nev_Head,Nev_Desc,Nev_Apper_On)>
<!ELEMENT Nev_Head (#PCDATA)>
<!ELEMENT Nev_Desc (#PCDATA)>
<!ELEMENT Nev_Apper_On (#PCDATA)>
<!ATTLIST record id ID #REQUIRED>
------------
i want to display only records contain(<Nev_Apper_On> tag contain "H" ) in a part of jsp file.
how can i do it.
 
Consider Paul's rocket mass heater.
 
subject: display xml in jsp - urgent
 
Similar Threads
question on mock exam
Using XML in JSP
question on mock exam
DTD and XML
xml file does not conform to dtd