Deserialize XML Database
-
Hello Everybody, I have XML Serilized data stored in the database. Now I want to Deserialze that data at run time. Anybody know how deserialze data at Run time. Thankyou in Advance
swguy23 wrote:
Anybody know how deserialze data at Run time.
So you don't know how to deserialize your data correct? The "at Run time" part doesn't really mean anything correct? Different platforms and development environments have different XML libraries so without knowing what yours are it is difficult to help. However in most cases the Serialize/Deserialize are both included so however you "Serialized" you use the same library (API) whatever to Deserialize.
led mike
-
Hello Everybody, I have XML Serilized data stored in the database. Now I want to Deserialze that data at run time. Anybody know how deserialze data at Run time. Thankyou in Advance
To deserialize XML, you have to have a code model that is set up to mirror your XML structure (classes making use of the XMLSerializer attributes). Take a look at my article Using the XmlSerializer Attributes[^]. If that is what you are talking about, I have a tool that can help at BoneSoft.com[^]. Just drop in the XML you are dealing with, set the renderer to C# or VB.Net (whatever you are working with) and build it. It will produce an XML serializable class model you can use to deserialize you XML to. It will also produce a class that handles the serialization/deserialization for you. Hope that helps.
Try code model generation tools at BoneSoft.com.