ruhanir

Hi guyz, I'm facing a new challenge ..

I have an xml file as you can see below.. (this is not the real file but similar)

< xml version="1.0" encoding="UTF-16" >

<products>
<product id="1">
<name>Snikers</name>
<productcode>010100011</productcode>
<update>update</update>
</product>
<product id="2">
<name>Snikers 2</name>
<productcode>110100011</productcode>
<update>delete</update>
</product>
<product id="3">
<name>Snikers 3</name>
<productcode>110100013</productcode>
<update>insert</update>
</product>
</products>

So depending on the <update> node i need to insert/update/delete the data in the dataset which connected to a sql server 2005 database. I know i am new so someone kind enough to show me how i will be so grateful. any help will be highly appreciated. Thanks



Re: XML and the .NET Framework How to Update/Insert/Delete depend on xml condition