Posts Tagged ‘serialization

20 May 2009

XML serialization ouput my way

Filled in: .NET, tags: ,

The default XML serialization adds the xml header and a couple of namespace definitions – elements which aren’t always welcome. Here’s how to control the XML source. Let’s start with a simple class called ‘Book’: Public Class Book Public Title As String = String.Empty Public Sub New() End Sub Public Sub New(ByVal title As String) [...]


Stop censorship