| File: FrameworkFork\Microsoft.Xml\Xml\Core\NewLineHandling.cs | Web Access |
| Project: src\src\dotnet-svcutil\lib\src\dotnet-svcutil-lib.csproj (dotnet-svcutil-lib) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace Microsoft.Xml { using System; // NewLineHandling speficies what will XmlWriter do with new line characters. The options are: // Replace = Replaces all new line characters with XmlWriterSettings.NewLineChars so all new lines are the same; by default NewLineChars are "\r\n" // Entitize = Replaces all new line characters that would be normalized away by a normalizing XmlReader with character entities // None = Does not change the new line characters in input // // Following table shows what will happen with new line characters in detail: // // | In text node value | In attribute value | // input to XmlWriter.WriteString() | \r\n \n \r \t | \r\n \n \r \t | // ------------------------------------------------------------------------------------------------------------ // NewLineHandling.Replace (default) | \r\n \r\n \r\n \t | &#D;&#A; &#A; &#D; 	 | // NewLineHandling.Entitize | &#D; \n &#D; \t | &#D;&#A; &#A; &#D; 	 | // NewLineHandling.None | \r\n \n \r \t | \r\n \n \r \t | // ------------------------------------------------------------------------------------------------------------ // Specifies how end of line is handled in XmlWriter. public enum NewLineHandling { Replace = 0, Entitize = 1, None = 2 } }