Click here to Skip to main content
12,695,049 members (30,935 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# XML C#4.0
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
Updated 6-Aug-12 3:52am
knvsatyanarayana 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 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
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.
Rate this: bad
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[^]

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 6 Aug 2012
Copyright © CodeProject, 1999-2017
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