System.Xml.NewLineHandling Enumeration

Specifies how to handle line breaks.

Syntax

public enum NewLineHandling

Remarks

This enumeration is passed to the erload:System.Xml.XmlWriter.Create method to specify whether the System.Xml.XmlWriter object will normalize line breaks in the output.

See the XmlWriterSettings.NewLineHandling property to see a table detailing the behavior of each of the validation types.

Members

Member NameDescription
Entitize

New line characters are entitized. This setting preserves all characters when the output is read by a normalizing System.Xml.XmlReader.

None

The new line characters are unchanged. The output is the same as the input.

Replace

New line characters are replaced to match the character specified in the XmlWriterSettings.NewLineChars property.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0