System.Xml.Serialization namespace in .NET totally kicks ass. It makes consuming and producing XML almost as easy as writing a class definition. Let me explain.

I am working on a project that includes a set of SOAP calls. These calls must consume and return XML. Lucky for me, an XML schema (.xsd file) already exist. Using the xsd.exe utility included with Visual Studio.NET, I generated a C# source file containing the class definitions and appropriate Xml.Serialization attributes needed to serialize/deserialize XML that adheres to the rules defined in the schema. And the great thing about xsd.exe is that expect for one attribute setting the generated code worked perfectly from the get go. This was a great time saver for me, and allowed me to focus on the implementation of the web service stubs for the SOAP calls.

In the future, whenever I need to consume or produce XML especially complex XML I plan to use System.Xml.Serialization.

posted by Kirby Turner | 23-Apr-2002 4:25 PM | comments (0)

Add Your Comment

Comment:
(No HTML)

Name:
E-mail/Web site:
Your e-mail/web site will not be published on this site. It is optional and will only be used by me should I need to contact you directly.
 
By checking this option, this site will remember your name and e-mail/web site on future visits. Uncheck this option to have the site not remember who you are on future visits.
 
Enter the code shown above:
Copyright © 1999-2008 Kirby Turner.
Site software written by White Peak Software Inc, a provider of custom software and software development coaching.