I am new to using xml in c sharp. I am able to enter details to the xml file (name of file "Data1.xml") through text boxes.But before entering details to the xml file,i need to first verify if any other 'well' have the same 'name'. 'name' has to be unique. How to search the xml and find if there exist another well with the same name as in 'textbox1.text'???
Also,i need to get the 'name's of all 'well's and display in a datagridview.And get the value of 'density' and 'depth' in textboxes,for a particular well,on clicking the row in grid view.
may be this is simple,but please help me with this.i always find great help in daniweb,and expect it this time too..
Thanks in advance.
<?xml version="1.0" encoding="utf-8"?> <wells> <well> <name>abc</name> <density>1000</density> <depth>200</depth> </well> </wells>