System.Xml.XmlWriterSettings Members

The members of System.Xml.XmlWriterSettings are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Xml.XmlWriterSettings class.

Public Properties

Asyncbool.

Gets or sets a value that indicates whether asynchronous System.Xml.XmlWriter methods can be used on a particular System.Xml.XmlWriter instance.

CheckCharactersbool.

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 tp://www.w3.org/TR/REC-xml/#charsets.

CloseOutputbool.

Gets or sets a value indicating whether the System.Xml.XmlWriter should also close the underlying stream or System.IO.TextWriter when the XmlWriter.Close method is called.

ConformanceLevelConformanceLevel.

Gets or sets the level of conformance that the XML writer checks the XML output for.

EncodingSystem.Text.Encoding.

Gets or sets the type of text encoding to use.

Indentbool.

Gets or sets a value indicating whether to indent elements.

IndentCharsstring.

Gets or sets the character string to use when indenting. This setting is used when the XmlWriterSettings.Indent property is set to true.

NamespaceHandlingNamespaceHandling.

Gets or sets a value that indicates whether the 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.

NewLineCharsstring.

Gets or sets the character string to use for line breaks.

NewLineHandlingNewLineHandling.

Gets or sets a value indicating whether to normalize line breaks in the output.

NewLineOnAttributesbool.

Gets or sets a value indicating whether to write attributes on a new line.

OmitXmlDeclarationbool.

Gets or sets a value indicating whether to omit an XML declaration.

[read-only]
OutputMethodXmlOutputMethod.

Gets the method used to serialize the System.Xml.XmlWriter output.

WriteEndDocumentOnClosebool.

Gets or sets a value that indicates whether the System.Xml.XmlWriter will add closing tags to all unclosed element tags when the XmlWriter.Close method is called.

Public Methods

Clone() : XmlWriterSettings

Creates a copy of the System.Xml.XmlWriterSettings instance.

Reset()

Resets the members of the settings class to their default values.