Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i have a server space for website but not sql server space so i want to store and retrieve data from using xml file.
can any one give me solution to store registration detail and login check form.

thanks in advance!!!!!!!! :)
Posted
Comments
José Amílcar Casimiro 1-Mar-13 5:35am    
You will need to have a design strategy.
For instance, you can serialize an object into a xml file.

Introducing XML Serialization
* http://msdn.microsoft.com/en-us/library/182eeyhh.aspx

With your requirements, you can have a xml file, based on a c# class with all user information.
You will need also to be aware when you need to persist your data into the file, and concurrency situations that is easy to avoid when using a database.
[no name] 2-Mar-13 0:32am    
i need a complete solution.
and thanx for ur response!!

Refer the below Codeproject Link for more details:
Using XML as Database with Dataset[^]
 
Share this answer
 
Yes, ReadXML to dataset and process everything with that dataset

DataSet ds = new DataSet();
ds.ReadXml("<xml filename="" with="" location="">");


If you do this way in Data layer(3 layered architecture), it will be helpful even when you upgrade your application to have any database or any other data source in future.
 
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