XmlWriter.Create Method (TextWriter)
Assemblies: System.Xml (in System.Xml.dll)
System.Xml.ReaderWriter (in System.Xml.ReaderWriter.dll)
When you use this overload, an XmlWriterSettings object with default settings is used to create the XML writer.
Default (no removal)
\r\n (carriage return, new line)
If you want to specify the features to support on the created writer, use an overload that takes an XmlWriterSettings object as one of its arguments, and pass in an XmlWriterSettings object with your custom settings.