Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# C#4.0
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 4:22am
Edited 14-Nov-12 4:23am
v3
Rate this: bad
good
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,
OI
  Permalink  
Rate this: bad
good
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 ?
  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 380
1 OriginalGriff 230
2 DamithSL 220
3 Zoltán Zörgő 150
4 Maciej Los 135
0 OriginalGriff 7,740
1 DamithSL 5,694
2 Sergey Alexandrovich Kryukov 5,404
3 Maciej Los 5,061
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 17 Nov 2012
Copyright © CodeProject, 1999-2014
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