Hello i want to thank for the help.
I have an xml file i read it and put new elements and attribute in space under the location
Code:
<record>
<name>dsadasasds</name>
<date>11/17/2013 9:02:39 PM</date>
<site_songitude>1</site_songitude>
<site_latitude>3</site_latitude>
<location name_loc="dasdassa"/>
'heare i have to insert the new elements and attributes'
</record>
i write this code but it isnt make anything
Code:
XDocument doc = XDocument.Load(path);
XElement root = new XElement("quadrat");
root.Add(new XElement("sea_state", txtsea.Text));
doc.Element("transect").Add(root);
doc.Save(path);
Bookmarks