Search and display fields in XML file
How do I search for records in this particular XML file and display all the fields being searched???
The name of the xml file whose content is to be searched is "first.xml" and it is as follows:
<? xml version="1.0" ?>
<? xml:stylesheet type='text/xsl' href="sample.xsl" ?>
<DATABASE>
<RECORD>
<NAME>abc</NAME>
<AGE>24</AGE>
<DESIG>programmer</DESIG>
</RECORD>
<RECORD>
<NAME>xyz</NAME>
<AGE>45</AGE>
<DESIG>CEO</DESIG>
</RECORD>
</DATABASE>
.................................................. .................
Please help me. I am waiting for a favourable reply.
|