Venkat S

Venkat S

  • 1.5k
  • 234
  • 202.7k

how to search xml data (textbox entered data to search xml file)

Jun 16 2011 5:02 AM
Hi Friends,


i am new for using xml .so i have one requirement ie i want search wt i m entered in textbox that i check in xml  and display matching data in to popup window.


i am developing in windows app.
i have xml file like
<DATAPACKET >
 <ROWDATA>
<R_ID>101</R_ID>
 <R_NAME>R-12</R_NAME>
<R_COLOR>White</R_COLOR>
</ROWDATA> <ROWDATA>
<R_ID>102</R_ID>
<R_NAME>R-22</R_NAME>
<R_COLOR>Green</R_COLOR>
</ROWDATA> <ROWDATA>
 <R_ID>103</R_ID>
<R_NAME>R-32</R_NAME>
 <R_COLOR>White</R_COLOR>
</ROWDATA> <ROWDATA>
<R_ID>104</R_ID>
<R_NAME>R-134A</R_NAME>
 <R_COLOR>Light Blue</R_COLOR>
 </ROWDATA>  
and i hve one textbox and button
 
now i enter some text in to textbox and i click button
then i search xml file like above data
 
for example entered textbox like 10 and clivk search button
i want to display matching with 10
like 100,101,102,103.........etc only for start 10.


please give me any idea how to search.


Thanks
Venkat.S

Answers (3)