Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

read specified content of a xml file

807607Oct 29 2006 — edited Oct 30 2006
How to get specified part of a xml file

This is the content of the xml file, I just want the content in the <body>...</body> without the
<p></p>
tag. How can I do that?
<?xml version="1.0" encoding="UTF-8"?>
<TEI.2>
<teiHeader>
<fileDesc>
<titleStmt>
<title>Pastikan kita terus bebas -- PM: Kekalkan perpaduan, jangan terpengaruh dakyah asing di alaf baru

</title>
<author>MOHD. NOR AB. SAMAD
</author>
</titleStmt>
<publicationStmt>
<publisher/>
</publicationStmt>
<sourceDesc>
<!-- ... -->
</sourceDesc>
</fileDesc>
<profileDesc>
<textClass>
<catRef target="Muka_Hadapan"/>
</textClass>
</profileDesc>
</teiHeader>
<text>
<front>
<!--
        		front matter ...
        	-->
</front>
<body>
<p>- Datuk Seri Dr. Mahathir Mohamad mengajak rakyat supaya mengekalkan perpaduan dan belajar daripada sejarah negara serta tidak terpedaya dengan dakyah asing bagi memastikan Malaysia terus bebas, merdeka dan maju pada alaf akan datang.</p>
<p>Sambil mengingatkan mereka usaha menjajah semula negara masih diteruskan oleh bekas penjajah, Perdana Menteri berkata, kemerdekaan negara tidak akan kekal selama-lamanya jika rakyat mengabaikan perkara tersebut.</p>
<p/>
<p/>
<p/>
</body>
<back>
<!--
        		back matter ...
        	-->
</back>
</text>
</TEI.2>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 27 2006
Added on Oct 29 2006
2 comments
214 views