diff --git a/xml/System.Xml/XmlWriter.xml b/xml/System.Xml/XmlWriter.xml index 0848e760e4c..b3fbe9c9a15 100644 --- a/xml/System.Xml/XmlWriter.xml +++ b/xml/System.Xml/XmlWriter.xml @@ -104,7 +104,7 @@ ||Specifies the text encoding to use. The default is `Encoding.UTF8`.| ||Indicates whether to indent elements. The default is `false` (no indentation).| ||Specifies the character string to use when indenting. The default is two spaces.| -||Specifies the character string to use for line breaks. The default is `\r\n` (carriage return, line feed).| +||Specifies the character string to use for line breaks. The default is `\r\n` (carriage return, line feed) for non-Unix platforms, and `\n` (line feed) for Unix platforms.| ||Specifies how to handle newline characters.| ||Indicates whether to write attributes on a new line. should be set to `true` when using this property. The default is `false`.| ||Indicates whether to write an XML declaration. The default is `false`.| @@ -378,7 +378,7 @@ An method was called before a previous asy ||`false`| ||Two spaces| || (no removal)| -||`\r\n` (carriage return, new line)| +||`\r\n` (carriage return, line feed) for non-Unix platforms, or `\n` (line feed) for Unix platforms| ||| ||`false`| ||`false`| @@ -454,7 +454,7 @@ An method was called before a previous asy ||`false`| ||Two spaces| || (no removal)| -||`\r\n` (carriage return, new line)| +||`\r\n` (carriage return, line feed) for non-Unix platforms, or `\n` (line feed) for Unix platforms| ||| ||`false`| ||`false`| @@ -540,7 +540,7 @@ An method was called before a previous asy ||`false`| ||Two spaces| || (no removal)| -||`\r\n` (carriage return, new line)| +||`\r\n` (carriage return, line feed) for non-Unix platforms, or `\n` (line feed) for Unix platforms| ||| ||`false`| ||`false`| @@ -621,7 +621,7 @@ An method was called before a previous asy ||`false`| ||Two spaces| || (no removal)| -||`\r\n` (carriage return, new line)| +||`\r\n` (carriage return, line feed) for non-Unix platforms, or `\n` (line feed) for Unix platforms| ||| ||`false`| ||`false`| @@ -705,7 +705,7 @@ An method was called before a previous asy ||`false`| ||Two spaces| || (no removal)| -||`\r\n` (carriage return, new line)| +||`\r\n` (carriage return, line feed) for non-Unix platforms, or `\n` (line feed) for Unix platforms| ||| ||`false`| ||`false`| @@ -783,7 +783,7 @@ An method was called before a previous asy ||`false`| ||Two spaces| || (no removal)| -||`\r\n` (carriage return, new line)| +||`\r\n` (carriage return, line feed) for non-Unix platforms, or `\n` (line feed) for Unix platforms| ||| ||`false`| ||`false`| diff --git a/xml/System.Xml/XmlWriterSettings.xml b/xml/System.Xml/XmlWriterSettings.xml index d26b9de434f..b5cbcfc0857 100644 --- a/xml/System.Xml/XmlWriterSettings.xml +++ b/xml/System.Xml/XmlWriterSettings.xml @@ -66,7 +66,7 @@ ||Text encoding to use.| value|| ||Whether to indent elements|`true` or `false`|`false` (no indentation)| ||Character string to use when indenting (used when is set to `true`).|String|Two spaces| -||Character string to use for line breaks.|String|`\r\n` (carriage return, line feed)| +||Character string to use for line breaks.|String|`\r\n` (carriage return, line feed) for non-Unix platforms, or `\n` (line feed) for Unix platforms| ||How to handle newline characters.| value: (normalize), (replace), or (leave unchanged)| (replace with characters specified by )| ||Whether to write attributes on individual lines (has no effect when is `false`).|`true` or `false`|`false`| ||Whether to write an XML declaration.|`true` or `false`|`false`| @@ -141,7 +141,7 @@ ||`Encoding.UTF8`.| ||`false`.| ||Two spaces.| -||`\r\n` (carriage return, new line).| +||`\r\n` (carriage return, line feed) for non-Unix platforms, or `\n` (line feed) for Unix platforms.| ||.| ||`false`.| ||`false`.| @@ -808,7 +808,7 @@ using (StreamWriter output = Gets or sets the character string to use for line breaks. - The character string to use for line breaks. This can be set to any string value. However, to ensure valid XML, you should specify only valid white space characters, such as space characters, tabs, carriage returns, or line feeds. The default is \r\n (carriage return, new line). + The character string to use for line breaks. This can be set to any string value. However, to ensure valid XML, you should specify only valid white space characters, such as space characters, tabs, carriage returns, or line feeds. The default is \r\n (carriage return, new line) for non-Unix platforms, and \n (new line) for Unix platforms. setting tells the to replace new line characters that would not be otherwise preserved by a normalizing with character entities. This is useful in round-trip scenarios where the output is read by a normalizing . Additional normalization rules apply for attribute values when round tripping since `\t`, `\n` and `\r` are replaced with a space in attribute values when normalized in an . -- The setting tells the to replace new line characters with `\r\n`, which is the new line format used by the Microsoft Windows operating system. This helps to ensure that the file can be correctly displayed by the Notepad or Microsoft Word applications. This setting also replaces new lines in attributes with character entities to preserve the characters. This is the default value. +- The setting tells the to replace new line characters with the character(s) specificed in the property. This setting also replaces new lines in attributes with character entities to preserve the characters. It is also the default value. - The setting tells the to leave the input unchanged. This setting is used when you do not want any new-line processing. This is useful when the output is read by an that does not do any normalization (for example, an with default settings.) @@ -1159,7 +1159,7 @@ This setting has no effect when the p ||`Encoding.UTF8`.| ||`false`.| ||Two spaces.| -||`\r\n`.| +||`\r\n` (carriage return, line feed) for non-Unix platforms, or `\n` (line feed) for Unix platforms.| ||.| ||`false`.| ||`false`.|