Exporting Class Data To XML
-
Hi, I have created a class object and populated it with the data. Now i want to export the data into a XML format. Is there any direct way of exporting the object data to XML? if yes, can you provide me with the code snippet?? Thanks in advance for any suggestions and help Regards, Kais
-
Hi, I have created a class object and populated it with the data. Now i want to export the data into a XML format. Is there any direct way of exporting the object data to XML? if yes, can you provide me with the code snippet?? Thanks in advance for any suggestions and help Regards, Kais
hi read this article http://www.ondotnet.com/pub/a/dotnet/2004/01/26/serializationpt1.html[^] Tamimi - Code
-
Hi, I have created a class object and populated it with the data. Now i want to export the data into a XML format. Is there any direct way of exporting the object data to XML? if yes, can you provide me with the code snippet?? Thanks in advance for any suggestions and help Regards, Kais
-
hi read this article http://www.ondotnet.com/pub/a/dotnet/2004/01/26/serializationpt1.html[^] Tamimi - Code
Hi Tamimi, Well the topic helped me. Now if i have an array of class object, will the same logic work? Say for example i have a Cat Class. I create an array of the cat class and populate with data. Now i want to export that cat class array to xml Regards Kais
-
Hi Tamimi, Well the topic helped me. Now if i have an array of class object, will the same logic work? Say for example i have a Cat Class. I create an array of the cat class and populate with data. Now i want to export that cat class array to xml Regards Kais
i think it will work !! you will create several xml files according to your array Tamimi - Code
-
There is no inbuilt way to do this.. HTH http://www.codeproject.com/soap/XmlToClassAndBack.asp[^] -- modified at 7:54 Tuesday 20th June, 2006
sathish s wrote:
There is no inbuilt way to do this..
Yes there is, the article you linked to uses an XmlSerializer, which is "built-in" or at least comes with the framework! Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
-
sathish s wrote:
There is no inbuilt way to do this..
Yes there is, the article you linked to uses an XmlSerializer, which is "built-in" or at least comes with the framework! Current blacklist svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
-
J4amieC wrote:
at least comes with the framework!
I agree with that, But I suppose something like dataSet.ReadXml(), DataSet.WriteXml were Inbuilt Methods.