NewLineHandling Enumeration

 

Specifies how to handle line breaks.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

type NewLineHandling

Member nameDescription
Entitize

New line characters are entitized. This setting preserves all characters when the output is read by a normalizing 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 NewLineChars property.

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

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

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: