WriteXMLDeclaration Method
Writes an XML declaration at the top of the document.
Syntax
[VB.NET] Public Sub WriteXMLDeclaration(ByVal Version As String, ByVal IncludeEncoding As Boolean, ByVal Standalone As Boolean)
[C#] public void WriteXMLDeclaration(string version, bool includeEncoding, bool standalone);
Remarks
This method should be call first to write a new XML declaration at the top of the document. Version specifies the XML version to use ('1.0').
If IncludeEncoding is true, an encoding attribute will be included based on the current Charset. If Standalone is true, the standalone="true" attribute will be included on the declaration.
NOTE: This method has a corresponding asynchronous version (WriteXMLDeclarationAsync) for use in the WinRT environment.