NewLineHandling Enumeration

NewLineHandling Enumeration

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Specifies how to handle line breaks.

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

No code example is currently available or this language may not be supported.

Member nameDescription
EntitizeNew line characters are entitized. This setting preserves all characters when the output is read by a normalizing XmlReader.
NoneThe new line characters are unchanged. The output is the same as the input.
ReplaceNew 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 validation type.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft