Library tutorials & articles

XML Serialization in .NET

Conclusion

As you have just seen, serialization is fairly easy to implement. I've already listed several possible reasons to use serialization in your applications and now that you know how to do it, I will leave the rest to your own capable imaginations. This article has focused only on how to serialize an object into an XML document, but please remember that objects can also be serialized into binary or SOAP formats. To learn more about those types of serialization, look up the BinaryFormatter class and the SOAPFormatter class.

Maybe this powerful technology didn't really have its humble beginnings in the bottom of a glass of powdered milk - but for some reason, it makes me smile to think so. Then again, maybe someday we'll see Bill Gates or one of his .NET guys sporting a liquidy white moustache on one of those "Got Milk" ads.

Happy Programming!

Comments

  1. 09 Aug 2007 at 15:58

    Fantastic Article!!

    Thank you so much for writing that article.  That was the first clearly stated explanation on serialization that I have come across and it helped me tremendously!

    Kudos to you my friend!

    Jason Z

  2. 28 Jul 2006 at 11:52

    I have two text boxes in my .aspx form. At the click of a button I need to generate an xml with the following schema.

    <?xml version="1.0" encoding="utf-16"?>
    <ns0:Root xmlns:ns0="http://Demo123.Schm_In">
      <No_1>      Contents of textBox 1       </No_1>
      <No_2>      Contents of textBox 2       </No_2>
    </ns0:Root>



    Now i need to post this through hppt.

    Pls give me the code in C#

  3. 14 Jan 2005 at 08:33
    What does this have to do with raisins? I see no raisins.
  4. 14 Jul 2003 at 11:28

    A good article for XML in .NET. This technology will truely standardize things, its a must for developers to learn and understand this.

  5. 01 Jan 1999 at 00:00

    This thread is for discussions of XML Serialization in .NET.

Leave a comment

Sign in or Join us (it's free).

Anthony Hart Anthony Hart has been working in IT since 1995. Currently, he is managing Oneirasoft, LLC, a consulting and software business. In his free time (if there is such a thing) he enjoys composing music ...
AddThis

Related discussion

Related podcasts

  • Episode 10: LINQ

    K Scott leads us in a discussion of LINQ, including: What is it How introducing LINQ to .NET changed the framework LINQ Providers LINQ to XML LINQ to SQL - how it's different from EF, tips and tricks, when to use it Links: LINQpad 3rd Party LIN...

Events coming up

  • Nov 18

    15 Minutes of Fame

    Dresher, United States

    This is a yearly tradition. We select 10 of the favorite speakers from monthly meetings, code camps, and hands on labs. Each one does a 15 minute talk on their favorite .NET technology. This is our 10th anniversary so we plan a gala event with special prizes and refreshments.

Want to stay in touch with what's going on? Follow us on twitter!