I have the function below which is used to serialize an object without adding the XML declaration. I\'ve just opened the project containing it an Visual Studio 2012 and the
Try to modify the code to have 2 separate usings:
Using stream As New StringWriter() Using writer As XmlWriter = XmlWriter.Create(stream, settings) End Using End Using