This is part of my XML file, and I have on my c# form a combo box that contains the names of the devices form the xml file which I've put there by using xpath navigator, plus a numeric up down, and finally a button I called Buy. what i wanna do is when I hit the button Buy I want the QUANTITY node value of the DEVICE node whos NAME node value equals to the combo box SelectedValue to increase by the number of the numeric up down value. In other words how can I select the QUANTITY node of a DEVICE element that has its NAME equal to the name in the combo box and the increase it by the value of the numeric up down of course using C#.
<INVENTORY>
<DEVICE ID="1">
<NAME>Air Steerable Bagless Upright</NAME>
<BRAND>Hoover</BRAND>
<MODEL>UH72400</MODEL>
<QUANTITY>23</QUANTITY>
<BUYING_PRICE>189.99</BUYING_PRICE>
<SELLING_PRICE>229.99</SELLING_PRICE>
</DEVICE>
<DEVICE ID="2">
<NAME>Quietforce Bagged Canister</NAME>
<BRAND>Hoover</BRAND>
<MODEL>SH30050</MODEL>
<QUANTITY>18</QUANTITY>
<BUYING_PRICE>299.99</BUYING_PRICE>
<SELLING_PRICE>334.99</SELLING_PRICE>
</DEVICE>
<DEVICE ID="3">
<NAME>Corded Cyclonic Stick Vacuum</NAME>
<BRAND>Hoover</BRAND>
<MODEL>SH20030</MODEL>
<QUANTITY>21</QUANTITY>
<BUYING_PRICE>79.99</BUYING_PRICE>
<SELLING_PRICE>109.99</SELLING_PRICE>
</DEVICE>