Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

display xml in jsp - urgent

 
palukuri nag
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic