From 154452f3f35e5d817479a6d6be88f847797f03a9 Mon Sep 17 00:00:00 2001 From: Maira Wenzel Date: Thu, 5 Mar 2020 18:04:03 -0800 Subject: [PATCH] change sample used --- xml/System.Xml/XmlWriterSettings.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xml/System.Xml/XmlWriterSettings.xml b/xml/System.Xml/XmlWriterSettings.xml index 3cea049beec..06ad7c9d281 100644 --- a/xml/System.Xml/XmlWriterSettings.xml +++ b/xml/System.Xml/XmlWriterSettings.xml @@ -557,10 +557,10 @@ using (StreamWriter output = ## Examples - The following example writes an XML fragment to a memory stream. + The following example shows how to set the `Enconding` property: - [!code-csharp[XmlWriterSettings.CloseOutput#1](~/samples/snippets/csharp/VS_Snippets_Data/XmlWriterSettings.CloseOutput/CS/writestream2.cs#1)] - [!code-vb[XmlWriterSettings.CloseOutput#1](~/samples/snippets/visualbasic/VS_Snippets_Data/XmlWriterSettings.CloseOutput/VB/writestream2.vb#1)] + [!code-csharp[XmlWriterSettings.CloseOutput#1](~/samples/snippets/csharp/VS_Snippets_Data/XML_Migration/CS/migration.cs#6)] + [!code-vb[XmlWriterSettings.CloseOutput#1](~/samples/snippets/visualbasic/VS_Snippets_Data/XML_Migration/VB/migration.vb#6)] ]]>