RadhaKrishnaKiJaya
asked on
How to search and delete a record in an xml file
Hi Experts,
I have a xml file. I do not want duplicate barcodes. How can I search for a barcode. Suppose in textbox I entered 'test'. Then It should search the file. Also how to delete a particular ID. For example- suppose I have the ID- 1, then how can I delete it from the file.
Thanks in advance.
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<XMLDataSet xmlns="ALLBARCODES">
<Barcodes>
<ID>0</ID>
<Barcode>test</Barcode>
</Barcodes>
<Barcodes>
<ID>1</ID>
<Barcode>test1</Barcode>
</Barcodes>
<Barcodes>
<ID>2</ID>
<Barcode>Test3</Barcode>
</Barcodes>
</XMLDataSet>
I have a xml file. I do not want duplicate barcodes. How can I search for a barcode. Suppose in textbox I entered 'test'. Then It should search the file. Also how to delete a particular ID. For example- suppose I have the ID- 1, then how can I delete it from the file.
Thanks in advance.
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<XMLDataSet xmlns="ALLBARCODES">
<Barcodes>
<ID>0</ID>
<Barcode>test</Barcode>
</Barcodes>
<Barcodes>
<ID>1</ID>
<Barcode>test1</Barcode>
</Barcodes>
<Barcodes>
<ID>2</ID>
<Barcode>Test3</Barcode>
</Barcodes>
</XMLDataSet>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Not a problem RadhaKrishnaKiJaya; glad I was able to help.
ASKER