XmlWriter.Create Method (StringBuilder, XmlWriterSettings)
Assemblies: System.Xml (in System.Xml.dll)
System.Xml.ReaderWriter (in System.Xml.ReaderWriter.dll)
public static XmlWriter Create( StringBuilder output, XmlWriterSettings settings )
- 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.