Click to See Complete Forum and Search --> : Serialization/desrialization


Ann_2020
June 5th, 2007, 08:04 AM
I have some doubts regarding serialization/deserialization.It would be really great if anyone could help me out!!!

Im preparing a questionnaire wizard.Which contains different groups with a set of questions in each group.I need to store data as xml using serialization and deserialization.

Xml strucutre goes like this.DotNet->CSharp->Document->Questionnaires|->Questionnaire.

i need to append each questionnaire as a new Questionnaire in the node Questionnaires.

Im able to serialize and store as xml.But next time when i save a new questionnaire ,the existing one is gettin overwritten..

Deserialization is also workin...But dont know how to append a new questionnaire to Questionnaires.

Plz help....

Shuja Ali
June 6th, 2007, 12:03 AM
I guess this has got nothing to do with Serialization and Deserialization. All you are doing is saving a questionnaire as XML file and reading it back. You have couple of options here on how to access the XML file and read/write data from it.

1. Use a dataset to read the XML file, do the changes in the dataset and save it back as XML File

2. Use System.XML namespace.

Ann_2020
June 7th, 2007, 07:39 AM
Thanks a lot ..its workin