Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Xml.​XmlWriterSettings
Assembly: System.Xml.ReaderWriter
Inheritance: object → XmlWriterSettings
Specifies a set of features to support on the <see cref="T:System.Xml.XmlWriter" /> object created by the <see cref="Overload:System.Xml.XmlWriter.Create" /> method.
Properties
public
bool
Async
Gets or sets a value that indicates whether asynchronous <see cref="T:System.Xml.XmlWriter" /> methods can be used on a particular <see cref="T:System.Xml.XmlWriter" /> instance.
public
bool
CheckCharacters
Gets or sets a value that indicates whether the XML writer should check to ensure that all characters in the document conform to the "2.2 Characters" section of the W3C XML 1.0 Recommendation.
public
bool
CloseOutput
Gets or sets a value indicating whether the <see cref="T:System.Xml.XmlWriter" /> should also close the underlying stream or <see cref="T:System.IO.TextWriter" /> when the <see cref="M:System.Xml.XmlWriter.Close" /> method is called.
public
ConformanceLevel
ConformanceLevel
Gets or sets the level of conformance that the XML writer checks the XML output for.
public
bool
DoNotEscapeUriAttributes
Gets or sets a value that indicates whether the <see cref="T:System.Xml.XmlWriter" /> does not escape URI attributes.
Encoding
Gets or sets the type of text encoding to use.
public
bool
Indent
Gets or sets a value indicating whether to indent elements.
public
string
IndentChars
Gets or sets the character string to use when indenting. This setting is used when the <see cref="P:System.Xml.XmlWriterSettings.Indent" /> property is set to <see langword="true" /> .
public
NamespaceHandling
NamespaceHandling
Gets or sets a value that indicates whether the <see cref="T:System.Xml.XmlWriter" /> should remove duplicate namespace declarations when writing XML content. The default behavior is for the writer to output all namespace declarations that are present in the writer's namespace resolver.
public
string
NewLineChars
Gets or sets the character string to use for line breaks.
public
NewLineHandling
NewLineHandling
Gets or sets a value indicating whether to normalize line breaks in the output.
public
bool
NewLineOnAttributes
Gets or sets a value indicating whether to write attributes on a new line.
public
bool
OmitXmlDeclaration
Gets or sets a value indicating whether to omit an XML declaration.
public
XmlOutputMethod
OutputMethod
Gets the method used to serialize the <see cref="T:System.Xml.XmlWriter" /> output.
public
bool
WriteEndDocumentOnClose
Gets or sets a value that indicates whether the <see cref="T:System.Xml.XmlWriter" /> will add closing tags to all unclosed element tags when the <see cref="M:System.Xml.XmlWriter.Close" /> method is called.
Methods
public
XmlWriterSettings
Clone​()
Creates a copy of the <see cref="T:System.Xml.XmlWriterSettings" /> instance.
Returns The cloned <see cref="T:System.Xml.XmlWriterSettings" /> object.
public
void
Reset​()
Resets the members of the settings class to their default values.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object