Jump to content
  • Advertisement
Sign in to follow this  
DvDmanDT

[.net] XML graph serialization using the same mechanisms as BinaryFormatter..?

This topic is 4138 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I'm very interested in writing an XmlFormatter class, with pretty much the same functionality as BinaryFormatter, but as you guessed, using Xml instead of Binary files. I do know about XmlSerializer, but it seems it can only serialize public fields and properties. BinaryFormatter can serialize private data as well, and is used in a different way, which I find alot better. Basicly, I want to be able to serialize any [Serializeable()] class to an XML document and back again. Is this already possible, and if so how, and if not, what's the easiest way to implent it? [Edit] 5 mins later I found this: http://www.codeproject.com/soap/XMLFormatter.asp Works like a charm, with ALMOST the same syntax (the only difference is that you have to pass a type parameter, which I can live with), I'll leave this topic alone as I suspect it might be of some use to other people as well. [Edited by - DvDmanDT on March 24, 2007 9:09:36 PM]

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!