Library tutorials & articles

XML Serialization in .NET

Introduction

In the past, maintaining the state of an object in ASP often required some very inventive and painstaking code. In the brave new world of .NET, however, Object Serialization offers us a comparatively easy way to do just that, as well as some other useful tasks.

As a kid, I remember waking up on many a cold morning and stumbling into the kitchen with my eyes half-closed, looking forward to whatever Mom had prepared for breakfast, only to find an anticlimactic bowl of steaming hot just-add-boiling-water instant oatmeal waiting for me on the table. At least I wasn't like the more unfortunate kids whose mothers force-fed them that white silt of death, powdered milk. I am absolutely certain that something must go seriously awry in the dehydration process of milk because upon rehydration, that stuff is just plain nasty.

Be that as it may, I think that at least one of the developers involved in creating the .NET Framework must have been one of those abused children. I see powdered milk fingerprints all over some of the new data management techniques in .NET. Then again, in an age of dehydrated/rehydrated food products, what could be more logical than dehydrated/rehydrated data?

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 ...

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

  • Mar 15

    DevWeek 2010

    London, United Kingdom

    DevWeek is Europe’s leading independent conference for software developers, database professionals and IT architects, and features expert speakers on a wide range of topics, including .NET 4.0, Silverlight 3, WCF 4, Visual Studio 2010, REST, Windows Workflow 4, Thread Synchronization, ASP.NET 4.0, SQL Server 2008 R2, LINQ, Unit Testing, CLR & C# 4.0, .NET Patterns, WPF 4, F#, Windows Azure, ADO.NET, Entity Framework, Debugging, T-SQL Tips & Tricks, and more.

We'd love to hear what you think! Submit ideas or give us feedback