Library tutorials & articles
XML Serialization in .NET
- Introduction
- Object Serialization
- Why All This Dried Food?
- The Dehydration Process
- Just Add Water
- Do I Have to Keep My Raisins?
- Conclusion
Why All This Dried Food?
"This serialization and deserialization is all well and good," you may be saying at this point, "but what can it be used for in real world web applications?" Very good question. What would be the sense of dehydrating a glass of milk just to rehydrate it and then dehydrate it again without drinking any? Never mind that it'll probably taste like the inside of your little brother's sock drawer (maybe I should have come up with a more tasty dehydrated food for this analogy). Some good uses for serialization/deserialization include:
- Storing user preferences in an object.
- Maintaining security information across pages and applications.
- Modification of XML documents without using the DOM.
- Passing an object from one application to another.
- Passing an object from one domain to another.
- Passing an object through a firewall as an XML string.
These are only a few of the many possibilities that serialization opens up for us.
Related articles
Related discussion
-
Creating a Windows Service in VB.NET
by davidvanr (108 replies)
-
Nesting tables in a dataset
by Peterb74 (1 replies)
-
Nesting tables in a dataset
by Peterb74 (0 replies)
-
HL7 requirement - Urgent
by Akhil_Kothari (1 replies)
-
write to XML file vb.net
by acnetonline (2 replies)
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
-
Dec
9
GL.net Group Meeting - December 2009
Gloucester, United Kingdom
The beginning of this year holiday season will belong to mocks. Ronnie and Stephen will take us for a tour around exciting world of unit testing.
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
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#
A good article for XML in .NET. This technology will truely standardize things, its a must for developers to learn and understand this.
This thread is for discussions of XML Serialization in .NET.