Click here to Skip to main content
11,493,537 members (65,999 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: XML C#4.0
Hi,
First Create xml file and add data . create dataset and read xml file (ds.readxml"").after to convert table format ds.tables[0].and store data in another xml file in order.plese help me to solve this problem.
Posted 6-Aug-12 2:22am
Edited 6-Aug-12 3:52am
v2
Comments
knvsatyanarayana at 6-Aug-12 7:34am
   
Can u tell me problem clearly
either are you using one XMl or 2 XML files ?
Simply using with Dataset you can access Xml files and display them as u like
Santhosh Kumar J at 6-Aug-12 7:48am
   
You mean, u ve xml, read it and display it in gridview and another xml, read it and add it to exisitng values in gridview, right?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Well that is your homework, so it is up to you.
Start with the first requirement: create the XML file. If you don't know how to then study the XML format (see, for instance: "XML at w3c schools") and have a look at simple XML file samples (you'll find tons of those, on the net).
You may use the same method to fulfill the other requirements.

By the way, if you have a specific question (suitable for Q&A) then feel free to ask us here.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Check this article. How to read xml and get it to datatable and how to write it back to xml.

XML to DataSet or GridView and back[^]
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 393
1 Maciej Los 286
2 F-ES Sitecore 224
3 KarstenK 210
4 CPallini 208
0 Sergey Alexandrovich Kryukov 10,132
1 OriginalGriff 8,630
2 Sascha Lefèvre 3,624
3 Maciej Los 3,392
4 Richard Deeming 2,500


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 6 Aug 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100