XML Doubt pls help...

admin

Administrator
Staff member
i got 2 doubts pls help..

a sample XML
------------

<STUDENT>
<RECORD ID="1">
<FIELD NAME="id">001</FIELD>
<FIELD NAME="name">MR.X</FIELD>
</RECORD>
<RECORD ID="2">
<FIELD NAME="id">002</FIELD>
<FIELD NAME="name">MR.Y</FIELD>
</RECORD>

</STUDENT>

1. i'll ve a function filterNode() to which i'll pass the query
condition ie.
for eg. filterNode("id=002")
now it s supposed to return the whole node itself which contains
the id = 002 (as a node)

ie for eg.

<RECORD ID="2">
<FIELD NAME="id">002</FIELD>
<FIELD NAME="name">MR.Y</FIELD>
</RECORD>


2. How to convert a node to xml

the above filterNode() returns node object (as said above) and i'm
supposed to convert that node back to readable xml file for furthur
searching purposes.


please help in solving these two..


thank you


Regards,

Saju.M
 
Back
Top