This documentation is archived and is not being maintained.

XmlWriterSettings Properties

The XmlWriterSettings type exposes the following members.

  NameDescription
Public property CheckCharacters Gets or sets a value indicating whether to do character checking.
Public property CloseOutput Gets or sets a value indicating whether the XmlWriter should also close the underlying stream or TextWriter when the Close method is called.
Public property ConformanceLevel Gets or sets the level of conformance which the XmlWriter complies with.
Public property Encoding Gets or sets the type of text encoding to use.
Public property Indent Gets or sets a value indicating whether to indent elements.
Public property IndentChars Gets or sets the character string to use when indenting. This setting is used when the Indent property is set to true.
Public property NamespaceHandling Gets or sets a value that indicates whether the 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 property NewLineChars Gets or sets the character string to use for line breaks.
Public property NewLineHandling Gets or sets a value indicating whether to normalize line breaks in the output.
Public property NewLineOnAttributes Gets or sets a value indicating whether to write attributes on a new line.
Public property OmitXmlDeclaration Gets or sets a value indicating whether to write an XML declaration.
Public property OutputMethod Gets the method used to serialize the XmlWriter output.
Top
Show: