O'Reilly logo

Microsoft® Visual Basic® 2010 Developer’s Handbook by Klaus Löffelmann and Sarika Calla Purohit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

XML Serialization

XML serialization generally follows the same principles as the BinaryFormatter and SoapFormatter classes that you’ve already seen. But XML serialization has some important advantages:

  • The “different class versions” problem does not apply to XML deserialization; the deserialization process simply assigns existing data to matching properties of the class that you want to deserialize.

  • XML code is easy to read and can be imported and processed by many different programs.

Nevertheless, you must make certain compromises when creating classes for XML serialization:

  • Like other classes with which you want to use .NET serialization, they must be marked with the Serializable attribute.

  • The class you want to serialize in XML format must have ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required