Click here to Skip to main content
12,955,988 members (84,819 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hello all, I used write a application with database use MySQL, but now I had a required that write a Application with database is XML, so I don't understand and strange with it (XML) (write in Windows Form C#) so I need a reference or guide, who have a link to reference or example, simple about it please send me, thank very much.

Below is my required of application.
Write a application with database use XML, have 1 table with a field (userID, username, login name, password) write a program with demand
1. Check or test 1 login valid
2. Change a password (note: password is only save value hash of password)
3. Add or remove 1 user.
Posted 14-Nov-12 3:22am
Updated 14-Nov-12 3:23am
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Here two CP links to get you started:

XML Database In C#[^]

This one is written is VB but you can get a general idea of how you can do it:

Xml Database Demo[^]

On top of that:

You might want to use a DataSet to load up your data from an XML file via DataSet,ReadXml in your application. When you're done with your updates write your changes using DataSet.WriteXml.

An example link here.[^]

Good luck,
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

This looks like homework to me. It's also kind of trivial, you just need to understand what XML is, and there's tons of examples on the web. Use LINQ to XML or the XmlDocument class to work with XML. The XmlDocument class is more standard, and probably more suitable. XPath is what you use to find nodes, using the SelectSingleNode and SelectNodes methods. Again, tons of info on the web, and surely your teacher gave you some info, too ?

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
OriginalGriff 6,849
CHill60 3,550
Maciej Los 3,223
ppolymorphe 2,060
Jochen Arndt 1,975

Advertise | Privacy | Mobile
Web01 | 2.8.170525.1 | Last Updated 17 Nov 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