Click here to Skip to main content
15,916,019 members
Please Sign up or sign in to vote.
1.00/5 (1 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
Updated 14-Nov-12 3:23am
v3

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,
OI
 
Share this answer
 
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 ?
 
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