XmlWriter.Create Method (StringBuilder, XmlWriterSettings)
Assembly: System.Xml (in System.Xml.dll)
- Type: System.Text.StringBuilder
- Type: System.Xml.XmlWriterSettings
If the XmlWriter is being used with the Transform method, you should use the OutputSettings property to obtain an XmlWriterSettings object with the correct settings. This ensures that the created XmlWriter object has the correct output settings.