can i use xml file as my databae
Posted Date Unknown Abhilash Pathrose 7 Comments

I want to save my website values  in xml file dynamically. Is it possible?

See All Responses Below...
Author
Message Rating
Posted on: 30/05/2012
Use Serialize/De serialize method to store an class object as an XML. You can also query an XML using X QUERY just like SQL Query if needed..

Tom

Posted on: 30/05/2012
Thanks Sir,

I serialized my class object. Its working.

but every time my class object replace xml file itself. Can you suggest any solution?


Share this page across other social networking sites



Posted on: 31/05/2012
Didn't get your requirement correctly . What do you want to achieve in this task ultimately?..

Tom

Posted on: 31/05/2012
suppose i have an xml file with 5 student report.

i want to append 6th student report also

Share this page across other social networking sites



Posted on: 31/05/2012
Posted on: 31/05/2012
Keep a List<> data structure which loads all the data form the XML file (basically serialization). Add the new student to the List and serialize it again.

Tom

Share this page across other social networking sites



Posted on: 31/05/2012
sorry 'basically deserialization" not serialization typing mistake..

Tom

Please Login to Post Your Comments
Name (Max. 100 characters)
Please post your comments here
Select Language
Comments
   Design  HTML
Attach File(Max. Size: 2 MB)
A few simple rules when posting your Comments,
  1. Please post only answers relevant to the topic of discussion.
  2. Please dont misuse this site or do not be abusive, offensive, inappropriate,harass anyone on the boards or post ads or spam. Doing so will delete your inappropriate messages and will block or delete your account on this site. 

TekTipsDownload
GateExam
Academic Projects
TekTipsExperts



 
Site optimized for IE7, 1280 X 768 and above. Copyright © 2010 - 2018 KTS InfoTech
Site Developed Using KTS WebCloud