<PackageReference Include="System.Xml.ReaderWriter" Version="4.0.11" />

XmlWriterSettings

public sealed class XmlWriterSettings
public bool Async { get; set; }

public bool CheckCharacters { get; set; }

public bool CloseOutput { get; set; }

public ConformanceLevel ConformanceLevel { get; set; }

public Encoding Encoding { get; set; }

public bool Indent { get; set; }

public string IndentChars { get; set; }

public NamespaceHandling NamespaceHandling { get; set; }

public string NewLineChars { get; set; }

public NewLineHandling NewLineHandling { get; set; }

public bool NewLineOnAttributes { get; set; }

public bool OmitXmlDeclaration { get; set; }

public bool WriteEndDocumentOnClose { get; set; }

public void Reset()