Click here to Skip to main content
16,014,892 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is sample of my xml file

i want to add,update,delete selected nodes in my form


XML
<?xml version="1.0" encoding="UTF-8"?>
<SQLReservedWords>
  <NCHAR type="compare" />
  <SOUNDEX type="compare" />
  <CHAR type="compare" />
  <PATINDEX type="compare" />
  <SPACE type="compare" />
  <CHARINDEX type="compare" />
  <REPLACE type="compare" />
  <STR type="compare" />
  <DIFFERENCE type="compare" />
  <QUOTENAME type="compare" />
  <STUFF type="compare" />
  <REPLICATE type="compare" />
  <LEN type="compare" />
Posted
Comments
Sandeep Mewara 15-Jul-12 3:47am    
And your issue is?

See this answer[^].
 
Share this answer
 
C#
DataSet ds = new DataSet();
ds.ReadXml("xml file path");

/*
write you update,Add & Delete Code.
*/
ds.writeXML(path);
 
Share this answer
 
v2
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900