<!DOCTYPE html>




















<html class="no-js hasSidebar hasPageActions hasBreadcrumb " lang="en-us" dir="ltr" data-authenticated="false">

<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta property="og:title" content="XmlWriter Class (System.Xml)" />
	<meta property="og:image" content="https://docs.microsoft.com/_themes/docs.theme/master/en-us/_themes/images/microsoft-header.png" />


		<meta name="is_archived" content="true" />
<meta name="ROBOTS" content="NOINDEX,NOFOLLOW" />
<meta name="ms.author" content="Archiveddocs" />
<meta name="breadcrumb_path" content="/previous-versions/windows/silverlight/breadcrumb/toc.json" />
<meta name="ms.topic" content="archived" />
<meta name="ms.prod" content="windows-silverlight" />
<meta name="uhfHeaderId" content="MSDocsHeader-Archive" />
<meta name="ms:contentKeyID" content="14219727" />
<meta name="TOCTitle" content="XmlWriter Class" />
<meta name="ms:assetid" content="T:System.Xml.XmlWriter" />
<meta name="ms:mtpsurl" content="https://msdn.microsoft.com/en-us/library/System.Xml.XmlWriter(v=VS.95)" />
<meta name="ms.date" content="11/18/2011" />
<meta name="mtps_version" content="v=VS.95" />
<meta name="f1_categories" content="Silverlight,Version=v5.0" />
<meta name="search.ms_sitename" content="Docs" />
<meta name="search.ms_docsetname" content="windows-silverlight-archive" />
<meta name="locale" content="en-us" />
<meta name="site_name" content="Docs" />
<meta name="search.ms_product" content="MSDN" />
<meta name="depot_name" content="MSDN.windows-silverlight-archive" />
<meta name="author" content="Tara Meyer (Aquent LLC)" />
<meta name="updated_at" content="2018-03-29 04:10 PM" />
<meta name="gitcommit" content="https://docs-archive.visualstudio.com/DefaultCollection/docs-archive-project/_git/windows-silverlight-docs-archive-pr/commit/868f1707cc7b79d6180e4863b9bdf51ebcf4cc8d?path=%2fwindows-silverlight%2fdotnet-windows-silverlight%2f5y8188ze(v%3dvs.95).md&amp;_a=contents" />
<meta name="original_content_git_url" content="https://docs-archive.visualstudio.com/DefaultCollection/docs-archive-project/_git/windows-silverlight-docs-archive-pr?path=%2fwindows-silverlight%2fdotnet-windows-silverlight%2f5y8188ze(v%3dvs.95).md&amp;version=GBlive&amp;_a=contents" />
<meta name="document_id" content="19651970-ce30-6606-8588-202e89ca52cb" />
<meta name="document_version_independent_id" content="276309ca-eef0-ae5d-689f-5b61a2e91036" />
<meta name="pagetype" content="Conceptual" />
<meta name="page_type" content="Conceptual" />
<meta name="toc_rel" content="toc.json" />
<meta name="search.mshattr.devlang" content="csharp vb" />
<meta name="word_count" content="1566" />

<link href="https://docs.microsoft.com/en-us/previous-versions/windows/silverlight/dotnet-windows-silverlight/5y8188ze(v%3dvs.95)" rel="canonical">
	<title>XmlWriter Class (System.Xml) | Microsoft Docs</title>

	<link rel="stylesheet" href="/_themes/docs.theme/master/en-us/_themes/css/d2adbe26.site.css ">
	<link rel="stylesheet" href="/_themes/docs.theme/master/en-us/_themes/css/cf4f1311.conceptual.css ">


	<script>
	var msDocs = {
		data:{
			contentLocale: 'en-us',
			contentDir: 'ltr',
			userLocale: 'en-us',
			userDir: 'ltr',
			pageTemplate: 'Conceptual',
			brand: '',
			context: {

			},
			hasComments: false,
			feedbackSystem: 'LiveFyre',
			feedbackGitHubRepo: '',
			feedbackProductUrl: '',
			contentGitUrl: 'https://docs-archive.visualstudio.com/DefaultCollection/docs-archive-project/_git/windows-silverlight-docs-archive-pr?path=%2fwindows-silverlight%2fdotnet-windows-silverlight%2f5y8188ze(v%3dvs.95).md&version=GBlive&_a=contents',
			forceVersionPicker:false		},
		functions:{},
		settings:{
			extendBreadcrumb: true
		}
	};
	if (!('Promise' in window && 'resolve' in window.Promise && 'reject' in window.Promise && 'all' in window.Promise && 'race' in window.Promise)) {
		document.write('<script src="/_themes/docs.theme/master/en-us/_themes/global/js/6ee34c01.bluebird.min.js"><\/script>');
	}
	if (typeof fetch !== 'function') {
		document.write('<script src="/_themes/docs.theme/master/en-us/_themes/global/js/d9fc435c.fetch.min.js"><\/script>');
	}
	</script>
	<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.2.4.min.js"></script>
	<script src="/_themes/docs.theme/master/en-us/_themes/global/js/cdd5ff0.global.min.js"></script>

</head>

<body lang="en-us" dir="ltr">
<div class="header-holder">
		<div id="headerAreaHolder" data-bi-name="header">
			<div id="uhf-placeholder"></div>
		</div>
	<div id="disclaimer-holder" class="disclaimer-holder"></div>
</div>

	<div class="container mainContainer" data-bi-name="body">
		<ul class="breadcrumbs" data-bi-name="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList" role="navigation" aria-label="Breadcrumb"><li></li></ul>

		<div class="pageActions">
			<div id="page-actions" data-bi-name="pageactions" role="complementary" aria-label="Page Actions">
				<div id="page-actions-content">
					<ul class="action-list">
						<li>
							<div class="sharing dropdown has-caret">
								<a href="#" class="dropdown-trigger" aria-haspopup="true" aria-controls="sharing-menu" aria-expanded="false" title="Share This Document" data-bi-name="share">
									<i class="icon icon-share"></i>Share								</a>
								<div class="dropdown-menu" id="sharing-menu" role="menu">
									<ul data-bi-name="share-links">
										<li><a class="share-twitter" data-bi-name="twitter"><i class="icon icon-twitter"></i>Twitter</a></li>
										<li><a class="share-linkedin" data-bi-name="linkedin"><i class="icon icon-linkedin"></i>LinkedIn</a></li>
										<li><a class="share-facebook" data-bi-name="facebook"><i class="icon icon-facebook"></i>Facebook</a></li>
										<li><a class="share-email" data-bi-name="email"><i class="icon icon-email"></i>Email</a></li>
									</ul>
								</div>
							</div>
						</li>
						<li role="presentation" class="typeSep">|</li>
							<li>
								<label for="lang-selector">Language</label>
								<select name="lang-selector" id="lang-selector" data-bi-name="select-lang">
										<option value="lang-csharp">C#</option>
										<option value="lang-vb">VB</option>
								</select>
							</li>
						<li>
							<label for="theme-selector">Theme</label>
							<select id="theme-selector" data-bi-name="select-theme">
								<option value="" class="removedOnload"></option>
								<option value="">Light</option>
								<option value="theme_night">Dark</option>
							</select>
						</li>
					</ul>

						<nav id="side-doc-outline" class="doc-outline" data-bi-name="intopic toc" role="navigation" aria-label="On page navigation">
							<h3>In this article</h3>
						</nav>

				</div>
			</div>
		</div>

		<div class="primary-holder">

			<main id="main" role="main" class="content" data-bi-name="content" lang="en-us" dir="ltr">


				<button class="mobile-nav-button button-border" type="button">
					<span class="docon docon-menu" aria-hidden="true"></span>
Contents				</button>

				

					<ul class="metadata page-metadata" data-bi-name="page info" lang="en-us" dir="ltr">
							<li class="displayDate docon-before docon-calendar inline loading">
								<time datetime="11/18/2011">11/18/2011</time>
							</li>
							<li class="readingTime docon-before docon-clock inline">7 minutes to read</li>

					</ul>
						<nav id="center-doc-outline" class="doc-outline" data-bi-name="intopic toc" role="navigation" aria-label="On page navigation">
							<h3>In this article</h3>
						</nav>

				<!-- <content> -->
					<div class="topic" data-xmlns="http://www.w3.org/1999/xhtml">
<div>
<h1 id="xmlwriter-class">XmlWriter Class</h1>
</div>
<div id="mainSection">
<div id="mainBody">
<div>
<div class="summary">
<p>Represents a writer that provides a fast, non-cached, forward-only means of generating streams or files containing XML data.</p>
</div>
</div>
<div>
<h2 id="inheritance-hierarchy">Inheritance Hierarchy</h2>
<p><span id="familyToggle"></span><a href="e5kfa45b%28v%3dvs.95%29" data-linktype="relative-path">System.Object</a><br>
  System.Xml.XmlWriter<br>
    <a href="ms404349%28v%3dvs.95%29" data-linktype="relative-path">System.Xml.XmlDictionaryWriter</a></p>
</div>
<p><strong>Namespace:</strong>  <a href="y3y47afh%28v%3dvs.95%29" data-linktype="relative-path">System.Xml</a><br>
<strong>Assembly:</strong>  System.Xml (in System.Xml.dll)</p>
<div>
<h2 id="syntax">Syntax</h2>
<p><span id="syntaxToggle"></span></p>
<pre><code class="lang-vb">'Declaration
Public MustInherit Class XmlWriter _
    Implements IDisposable
</code></pre>
<pre><code class="lang-csharp">public abstract class XmlWriter : IDisposable
</code></pre>
</div>
<p>The XmlWriter type exposes the following members.</p>
<div>
<h2 id="constructors">Constructors</h2>
<p><span id="constructorTableToggle"></span></p>
<table>
<thead>
<tr class="header">
<th> </th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><img src="images/dd282421.protmethod%28en-us%2cxnagamestudio.35%29.gif" title="Protected method" alt="Protected method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="5scct9y4%28v%3dvs.95%29" data-linktype="relative-path">XmlWriter</a></td>
<td>Initializes a new instance of the XmlWriter class.</td>
</tr>
</tbody>
</table>
<p>Top</p>
</div>
<div>
<h2 id="properties">Properties</h2>
<p><span id="propertyTableToggle"></span></p>
<table>
<thead>
<tr class="header">
<th> </th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><img src="images/ff433750.pubproperty%28en-us%2cxnagamestudio.35%29.gif" title="Public property" alt="Public property" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="0dhh6we1%28v%3dvs.95%29" data-linktype="relative-path">Settings</a></td>
<td>Gets the <a href="dfsk2sx2%28v%3dvs.95%29" data-linktype="relative-path">XmlWriterSettings</a> object used to create this XmlWriter instance.</td>
</tr>
<tr class="even">
<td><img src="images/ff433750.pubproperty%28en-us%2cxnagamestudio.35%29.gif" title="Public property" alt="Public property" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="a896c8se%28v%3dvs.95%29" data-linktype="relative-path">WriteState</a></td>
<td>When overridden in a derived class, gets the state of the writer.</td>
</tr>
<tr class="odd">
<td><img src="images/ff433750.pubproperty%28en-us%2cxnagamestudio.35%29.gif" title="Public property" alt="Public property" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="w613sye2%28v%3dvs.95%29" data-linktype="relative-path">XmlLang</a></td>
<td>When overridden in a derived class, gets the current xml:lang scope.</td>
</tr>
<tr class="even">
<td><img src="images/ff433750.pubproperty%28en-us%2cxnagamestudio.35%29.gif" title="Public property" alt="Public property" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="1b6a1yc9%28v%3dvs.95%29" data-linktype="relative-path">XmlSpace</a></td>
<td>When overridden in a derived class, gets an <a href="as6h6ha8%28v%3dvs.95%29" data-linktype="relative-path">XmlSpace</a> representing the current xml:space scope.</td>
</tr>
</tbody>
</table>
<p>Top</p>
</div>
<div>
<h2 id="methods">Methods</h2>
<p><span id="methodTableToggle"></span></p>
<table>
<thead>
<tr class="header">
<th> </th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="xk0fxd6w%28v%3dvs.95%29" data-linktype="relative-path">Close</a></td>
<td>When overridden in a derived class, closes this stream and the underlying stream.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/ff433750.static%28en-us%2cxnagamestudio.35%29.gif" title="Static member" alt="Static member" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="x972ksd0%28v%3dvs.95%29" data-linktype="relative-path">Create(Stream)</a></td>
<td>Creates a new XmlWriter instance using the specified stream.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/ff433750.static%28en-us%2cxnagamestudio.35%29.gif" title="Static member" alt="Static member" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="66dybzaw%28v%3dvs.95%29" data-linktype="relative-path">Create(StringBuilder)</a></td>
<td>Creates a new XmlWriter instance using the specified <a href="y9sxk6fy%28v%3dvs.95%29" data-linktype="relative-path">StringBuilder</a>.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/ff433750.static%28en-us%2cxnagamestudio.35%29.gif" title="Static member" alt="Static member" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="k7sk6sbt%28v%3dvs.95%29" data-linktype="relative-path">Create(TextWriter)</a></td>
<td>Creates a new XmlWriter instance using the specified <a href="ywxh2328%28v%3dvs.95%29" data-linktype="relative-path">TextWriter</a>.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/ff433750.static%28en-us%2cxnagamestudio.35%29.gif" title="Static member" alt="Static member" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="77t6e4w3%28v%3dvs.95%29" data-linktype="relative-path">Create(XmlWriter)</a></td>
<td>Creates a new XmlWriter instance using the specified XmlWriter object.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/ff433750.static%28en-us%2cxnagamestudio.35%29.gif" title="Static member" alt="Static member" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="ms162617%28v%3dvs.95%29" data-linktype="relative-path">Create(Stream, XmlWriterSettings)</a></td>
<td>Creates a new XmlWriter instance using the stream and <a href="dfsk2sx2%28v%3dvs.95%29" data-linktype="relative-path">XmlWriterSettings</a> object.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/ff433750.static%28en-us%2cxnagamestudio.35%29.gif" title="Static member" alt="Static member" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="ms162619%28v%3dvs.95%29" data-linktype="relative-path">Create(StringBuilder, XmlWriterSettings)</a></td>
<td>Creates a new XmlWriter instance using the <a href="y9sxk6fy%28v%3dvs.95%29" data-linktype="relative-path">StringBuilder</a> and <a href="dfsk2sx2%28v%3dvs.95%29" data-linktype="relative-path">XmlWriterSettings</a> objects.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/ff433750.static%28en-us%2cxnagamestudio.35%29.gif" title="Static member" alt="Static member" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="ms162620%28v%3dvs.95%29" data-linktype="relative-path">Create(TextWriter, XmlWriterSettings)</a></td>
<td>Creates a new XmlWriter instance using the <a href="ywxh2328%28v%3dvs.95%29" data-linktype="relative-path">TextWriter</a> and <a href="dfsk2sx2%28v%3dvs.95%29" data-linktype="relative-path">XmlWriterSettings</a> objects.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/ff433750.static%28en-us%2cxnagamestudio.35%29.gif" title="Static member" alt="Static member" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="a09119h4%28v%3dvs.95%29" data-linktype="relative-path">Create(XmlWriter, XmlWriterSettings)</a></td>
<td>Creates a new XmlWriter instance using the specified XmlWriter and <a href="dfsk2sx2%28v%3dvs.95%29" data-linktype="relative-path">XmlWriterSettings</a> objects.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="ff928369%28v%3dvs.95%29" data-linktype="relative-path">Dispose()</a></td>
<td></td>
</tr>
<tr class="odd">
<td><img src="images/dd282421.protmethod%28en-us%2cxnagamestudio.35%29.gif" title="Protected method" alt="Protected method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="ms162623%28v%3dvs.95%29" data-linktype="relative-path">Dispose(Boolean)</a></td>
<td>Releases the unmanaged resources used by the XmlWriter and optionally releases the managed resources.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="bsc2ak47%28v%3dvs.95%29" data-linktype="relative-path">Equals(Object)</a></td>
<td>Determines whether the specified <a href="e5kfa45b%28v%3dvs.95%29" data-linktype="relative-path">Object</a> is equal to the current <a href="e5kfa45b%28v%3dvs.95%29" data-linktype="relative-path">Object</a>. (Inherited from <a href="e5kfa45b%28v%3dvs.95%29" data-linktype="relative-path">Object</a>.)</td>
</tr>
<tr class="odd">
<td><img src="images/dd282421.protmethod%28en-us%2cxnagamestudio.35%29.gif" title="Protected method" alt="Protected method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="4k87zsw7%28v%3dvs.95%29" data-linktype="relative-path">Finalize</a></td>
<td>Allows an object to try to free resources and perform other cleanup operations before the <a href="e5kfa45b%28v%3dvs.95%29" data-linktype="relative-path">Object</a> is reclaimed by garbage collection. (Inherited from <a href="e5kfa45b%28v%3dvs.95%29" data-linktype="relative-path">Object</a>.)</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="h000t81w%28v%3dvs.95%29" data-linktype="relative-path">Flush</a></td>
<td>When overridden in a derived class, flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="zdee4b3y%28v%3dvs.95%29" data-linktype="relative-path">GetHashCode</a></td>
<td>Serves as a hash function for a particular type. (Inherited from <a href="e5kfa45b%28v%3dvs.95%29" data-linktype="relative-path">Object</a>.)</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="dfwy45w9%28v%3dvs.95%29" data-linktype="relative-path">GetType</a></td>
<td>Gets the <a href="42892f65%28v%3dvs.95%29" data-linktype="relative-path">Type</a> of the current instance. (Inherited from <a href="e5kfa45b%28v%3dvs.95%29" data-linktype="relative-path">Object</a>.)</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="h4z5325e%28v%3dvs.95%29" data-linktype="relative-path">LookupPrefix</a></td>
<td>When overridden in a derived class, returns the closest prefix defined in the current namespace scope for the namespace URI.</td>
</tr>
<tr class="even">
<td><img src="images/dd282421.protmethod%28en-us%2cxnagamestudio.35%29.gif" title="Protected method" alt="Protected method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="57ctke0a%28v%3dvs.95%29" data-linktype="relative-path">MemberwiseClone</a></td>
<td>Creates a shallow copy of the current <a href="e5kfa45b%28v%3dvs.95%29" data-linktype="relative-path">Object</a>. (Inherited from <a href="e5kfa45b%28v%3dvs.95%29" data-linktype="relative-path">Object</a>.)</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="7bxwbwt2%28v%3dvs.95%29" data-linktype="relative-path">ToString</a></td>
<td>Returns a string that represents the current object. (Inherited from <a href="e5kfa45b%28v%3dvs.95%29" data-linktype="relative-path">Object</a>.)</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="w5fz44tx%28v%3dvs.95%29" data-linktype="relative-path">WriteAttributes</a></td>
<td>When overridden in a derived class, writes out all the attributes found at the current position in the <a href="b8a5e1s5%28v%3dvs.95%29" data-linktype="relative-path">XmlReader</a>.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="y13bc3d8%28v%3dvs.95%29" data-linktype="relative-path">WriteAttributeString(String, String)</a></td>
<td>When overridden in a derived class, writes out the attribute with the specified local name and value.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="xkd34zdt%28v%3dvs.95%29" data-linktype="relative-path">WriteAttributeString(String, String, String)</a></td>
<td>When overridden in a derived class, writes an attribute with the specified local name, namespace URI, and value.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="73z46xs1%28v%3dvs.95%29" data-linktype="relative-path">WriteAttributeString(String, String, String, String)</a></td>
<td>When overridden in a derived class, writes out the attribute with the specified prefix, local name, namespace URI, and value.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="84e3a2sh%28v%3dvs.95%29" data-linktype="relative-path">WriteBase64</a></td>
<td>When overridden in a derived class, encodes the specified binary bytes as Base64 and writes out the resulting text.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="kfw36ez5%28v%3dvs.95%29" data-linktype="relative-path">WriteBinHex</a></td>
<td>When overridden in a derived class, encodes the specified binary bytes as BinHex and writes out the resulting text.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="c43d888c%28v%3dvs.95%29" data-linktype="relative-path">WriteCData</a></td>
<td>When overridden in a derived class, writes out a &lt;![CDATA[...]]&gt; block containing the specified text.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="6yyaf328%28v%3dvs.95%29" data-linktype="relative-path">WriteCharEntity</a></td>
<td>When overridden in a derived class, forces the generation of a character entity for the specified Unicode character value.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="1t890b64%28v%3dvs.95%29" data-linktype="relative-path">WriteChars</a></td>
<td>When overridden in a derived class, writes text one buffer at a time.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="s1acz6sh%28v%3dvs.95%29" data-linktype="relative-path">WriteComment</a></td>
<td>When overridden in a derived class, writes out a comment &lt;!--...--&gt; containing the specified text.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="ef0632w4%28v%3dvs.95%29" data-linktype="relative-path">WriteDocType</a></td>
<td>When overridden in a derived class, writes the DOCTYPE declaration with the specified name and optional attributes.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="aex0e7zs%28v%3dvs.95%29" data-linktype="relative-path">WriteElementString(String, String)</a></td>
<td>When overridden in a derived class, writes an element with the specified local name and value.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="he5e4zzf%28v%3dvs.95%29" data-linktype="relative-path">WriteElementString(String, String, String)</a></td>
<td>When overridden in a derived class, writes an element with the specified local name, namespace URI, and value.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="dw1cdthw%28v%3dvs.95%29" data-linktype="relative-path">WriteElementString(String, String, String, String)</a></td>
<td>Writes an element with the specified local name, namespace URI, and value.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="ahkdch81%28v%3dvs.95%29" data-linktype="relative-path">WriteEndAttribute</a></td>
<td>When overridden in a derived class, closes the previous <a href="1wewht12%28v%3dvs.95%29" data-linktype="relative-path">WriteStartAttribute</a> call.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="s6525ax4%28v%3dvs.95%29" data-linktype="relative-path">WriteEndDocument</a></td>
<td>When overridden in a derived class, closes any open elements or attributes and puts the writer back in the Start state.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="6b2wtc5w%28v%3dvs.95%29" data-linktype="relative-path">WriteEndElement</a></td>
<td>When overridden in a derived class, closes one element and pops the corresponding namespace scope.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="4235yxwc%28v%3dvs.95%29" data-linktype="relative-path">WriteEntityRef</a></td>
<td>When overridden in a derived class, writes out an entity reference as &amp;name;.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="ed676bze%28v%3dvs.95%29" data-linktype="relative-path">WriteFullEndElement</a></td>
<td>When overridden in a derived class, closes one element and pops the corresponding namespace scope.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="5fd1cc08%28v%3dvs.95%29" data-linktype="relative-path">WriteName</a></td>
<td>When overridden in a derived class, writes out the specified name, ensuring it is a valid name according to the W3C XML 1.0 recommendation (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name).</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="h39cye7s%28v%3dvs.95%29" data-linktype="relative-path">WriteNmToken</a></td>
<td>When overridden in a derived class, writes out the specified name, ensuring it is a valid NmToken according to the W3C XML 1.0 recommendation (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name).</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="1wd6aw1b%28v%3dvs.95%29" data-linktype="relative-path">WriteNode</a></td>
<td>When overridden in a derived class, copies everything from the reader to the writer and moves the reader to the start of the next sibling.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="75653366%28v%3dvs.95%29" data-linktype="relative-path">WriteProcessingInstruction</a></td>
<td>When overridden in a derived class, writes out a processing instruction with a space between the name and text as follows: &lt;?name text?&gt;.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="x5h2h3kd%28v%3dvs.95%29" data-linktype="relative-path">WriteQualifiedName</a></td>
<td>When overridden in a derived class, writes out the namespace-qualified name. This method looks up the prefix that is in scope for the given namespace.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="0755ytay%28v%3dvs.95%29" data-linktype="relative-path">WriteRaw(String)</a></td>
<td>When overridden in a derived class, writes raw markup manually from a string.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="st35efsk%28v%3dvs.95%29" data-linktype="relative-path">WriteRaw(array&lt;Char[], Int32, Int32)</a></td>
<td>When overridden in a derived class, writes raw markup manually from a character buffer.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="w33kw6d1%28v%3dvs.95%29" data-linktype="relative-path">WriteStartAttribute(String)</a></td>
<td>Writes the start of an attribute with the specified local name.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="ek6e0s4y%28v%3dvs.95%29" data-linktype="relative-path">WriteStartAttribute(String, String)</a></td>
<td>Writes the start of an attribute with the specified local name and namespace URI.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="atk83009%28v%3dvs.95%29" data-linktype="relative-path">WriteStartAttribute(String, String, String)</a></td>
<td>When overridden in a derived class, writes the start of an attribute with the specified prefix, local name, and namespace URI.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="a4w1w8f0%28v%3dvs.95%29" data-linktype="relative-path">WriteStartDocument()</a></td>
<td>When overridden in a derived class, writes the XML declaration with the version &quot;1.0&quot;.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="se25cc3k%28v%3dvs.95%29" data-linktype="relative-path">WriteStartDocument(Boolean)</a></td>
<td>When overridden in a derived class, writes the XML declaration with the version &quot;1.0&quot; and the standalone attribute.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="t8t5yhhk%28v%3dvs.95%29" data-linktype="relative-path">WriteStartElement(String)</a></td>
<td>When overridden in a derived class, writes out a start tag with the specified local name.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="7579ed08%28v%3dvs.95%29" data-linktype="relative-path">WriteStartElement(String, String)</a></td>
<td>When overridden in a derived class, writes the specified start tag and associates it with the given namespace.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="7cdfkth5%28v%3dvs.95%29" data-linktype="relative-path">WriteStartElement(String, String, String)</a></td>
<td>When overridden in a derived class, writes the specified start tag and associates it with the given namespace and prefix.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="43a07wz2%28v%3dvs.95%29" data-linktype="relative-path">WriteString</a></td>
<td>When overridden in a derived class, writes the given text content.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="zd2k6h4f%28v%3dvs.95%29" data-linktype="relative-path">WriteSurrogateCharEntity</a></td>
<td>When overridden in a derived class, generates and writes the surrogate character entity for the surrogate character pair.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="396h78hy%28v%3dvs.95%29" data-linktype="relative-path">WriteValue(Boolean)</a></td>
<td>Writes a <a href="a28wyd50%28v%3dvs.95%29" data-linktype="relative-path">Boolean</a> value.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="acx0d3az%28v%3dvs.95%29" data-linktype="relative-path">WriteValue(DateTime)</a></td>
<td>Writes a <a href="03ybds8y%28v%3dvs.95%29" data-linktype="relative-path">DateTime</a> value.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="zcx9sxfx%28v%3dvs.95%29" data-linktype="relative-path">WriteValue(Decimal)</a></td>
<td>Writes a <a href="1k2e8atx%28v%3dvs.95%29" data-linktype="relative-path">Decimal</a> value.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="kt52k11a%28v%3dvs.95%29" data-linktype="relative-path">WriteValue(Double)</a></td>
<td>Writes a <a href="643eft0t%28v%3dvs.95%29" data-linktype="relative-path">Double</a> value.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="30zk4z5w%28v%3dvs.95%29" data-linktype="relative-path">WriteValue(Int32)</a></td>
<td>Writes a <a href="td2s409d%28v%3dvs.95%29" data-linktype="relative-path">Int32</a> value.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="b430ezyb%28v%3dvs.95%29" data-linktype="relative-path">WriteValue(Int64)</a></td>
<td>Writes a <a href="6yy583ek%28v%3dvs.95%29" data-linktype="relative-path">Int64</a> value.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="az9sdx79%28v%3dvs.95%29" data-linktype="relative-path">WriteValue(Object)</a></td>
<td>Writes the object value.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="etw6zffc%28v%3dvs.95%29" data-linktype="relative-path">WriteValue(Single)</a></td>
<td>Writes a single-precision floating-point number.</td>
</tr>
<tr class="even">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="d22a85c2%28v%3dvs.95%29" data-linktype="relative-path">WriteValue(String)</a></td>
<td>Writes a <a href="s1wwdcbf%28v%3dvs.95%29" data-linktype="relative-path">String</a> value.</td>
</tr>
<tr class="odd">
<td><img src="images/bb196774.pubmethod%28en-us%2cxnagamestudio.35%29.gif" title="Public method" alt="Public method" data-linktype="relative-path"><img src="images/hh133495.slmobile%28en-us%2cvs.95%29.gif" title="Supported by Silverlight for Windows Phone" alt="Supported by Silverlight for Windows Phone" data-linktype="relative-path"><img src="images/w3zkc0yf.xnaxbox%28en-us%2cvs.95%29.gif" title="Supported by Xbox 360" alt="Supported by Xbox 360" data-linktype="relative-path"></td>
<td><a href="cwtwfwta%28v%3dvs.95%29" data-linktype="relative-path">WriteWhitespace</a></td>
<td>When overridden in a derived class, writes out the given white space.</td>
</tr>
</tbody>
</table>
<p>Top</p>
</div>
<div>
<h2 id="remarks">Remarks</h2>
<p><span id="remarksToggle"></span></p>
<p>The XmlWriter class supports the W3C Extensible Markup Language (XML) 1.0 and the Namespaces in XML recommendations.</p>
<div class="alert">
<table>
<colgroup>
<col style="">
</colgroup>
<thead>
<tr class="header">
<th><img src="images/bb197414.alert_note%28en-us%2cxnagamestudio.35%29.gif" title="Note" alt="Note" class="note" data-linktype="relative-path"><strong>Note:</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><p>You must use the <a href="49a5818h%28v%3dvs.95%29" data-linktype="relative-path">Create</a> method to create XmlWriter object.</p></td>
</tr>
</tbody>
</table>
</div>
<p><strong>Note</strong>   When you use the XmlWriter methods to output XML, the elements and attributes will not be written until you call the <a href="xk0fxd6w%28v%3dvs.95%29" data-linktype="relative-path">Close</a> method.</p>
<h3 id="security-considerations">Security Considerations</h3>
<div class="subsection">
<p>The following items are things to consider when working with the XmlWriter class.</p>
<ul>
<li><p>Exceptions thrown by the XmlWriter can disclose path information that you do not want bubbled up to the application. Your applications must catch exceptions and process them appropriately.</p>
</li>
<li><p>The XmlWriter does not validate any data that is passed to the <a href="ef0632w4%28v%3dvs.95%29" data-linktype="relative-path">WriteDocType</a> or <a href="6zacb563%28v%3dvs.95%29" data-linktype="relative-path">WriteRaw</a> methods. You should not pass arbitrary data to these methods.</p>
</li>
</ul>
</div>
</div>
<div>
<h2 id="examples">Examples</h2>
<p><span id="exampleToggle"></span></p>
<p>The following example navigates through the stream to determine the current node type, and then uses XmlWriter to output the <a href="b8a5e1s5%28v%3dvs.95%29" data-linktype="relative-path">XmlReader</a> content.</p>
<div id="snippetGroup">
<pre><code class="lang-vb">Dim output As StringBuilder = New StringBuilder()

Dim xmlString As String = &quot;&lt;?xml version='1.0'?&gt;&quot; &amp; _
                &quot;&lt;!-- This is a sample XML document --&gt;&quot; &amp; _
                &quot;&lt;Items&gt;&quot; &amp; _
                  &quot;&lt;Item&gt;test with a child element &lt;more/&gt; stuff&lt;/Item&gt;&quot; &amp; _
                &quot;&lt;/Items&gt;&quot;
' Create an XmlReader
Using reader As XmlReader = XmlReader.Create(New StringReader(xmlString))
    Dim ws As XmlWriterSettings = New XmlWriterSettings()
    ws.Indent = True
    Using writer As XmlWriter = XmlWriter.Create(output, ws)

        ' Parse the file and display each of the nodes.
        While reader.Read()
            Select Case reader.NodeType
                Case XmlNodeType.Element
                    writer.WriteStartElement(reader.Name)
                Case XmlNodeType.Text
                    writer.WriteString(reader.Value)
                Case XmlNodeType.XmlDeclaration
                Case XmlNodeType.ProcessingInstruction
                    writer.WriteProcessingInstruction(reader.Name, reader.Value)
                Case XmlNodeType.Comment
                    writer.WriteComment(reader.Value)
                Case XmlNodeType.EndElement
                    writer.WriteFullEndElement()
            End Select
        End While
    End Using
End Using
OutputTextBlock.Text = output.ToString()
</code></pre>
<pre><code class="lang-csharp">StringBuilder output = new StringBuilder();

String xmlString =
        @&quot;&lt;?xml version='1.0'?&gt;
        &lt;!-- This is a sample XML document --&gt;
        &lt;Items&gt;
          &lt;Item&gt;test with a child element &lt;more/&gt; stuff&lt;/Item&gt;
        &lt;/Items&gt;&quot;;
// Create an XmlReader
using (XmlReader reader = XmlReader.Create(new StringReader(xmlString)))
{
    XmlWriterSettings ws = new XmlWriterSettings();
    ws.Indent = true;
    using (XmlWriter writer = XmlWriter.Create(output, ws))
    {

        // Parse the file and display each of the nodes.
        while (reader.Read())
        {
            switch (reader.NodeType)
            {
                case XmlNodeType.Element:
                    writer.WriteStartElement(reader.Name);
                    break;
                case XmlNodeType.Text:
                    writer.WriteString(reader.Value);
                    break;
                case XmlNodeType.XmlDeclaration:
                case XmlNodeType.ProcessingInstruction:
                    writer.WriteProcessingInstruction(reader.Name, reader.Value);
                    break;
                case XmlNodeType.Comment:
                    writer.WriteComment(reader.Value);
                    break;
                case XmlNodeType.EndElement:
                    writer.WriteFullEndElement();
                    break;
            }
        }

    }
}
OutputTextBlock.Text = output.ToString();
</code></pre>
</div>
</div>
<div>
<h2 id="version-information">Version Information</h2>
<p><span id="versionsTitleToggle"></span></p>
<h4 id="silverlight">Silverlight</h4>
<p>Supported in: 5, 4, 3</p>
<h4 id="silverlight-for-windows-phone">Silverlight for Windows Phone</h4>
<p>Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0</p>
<h4 id="xna-framework">XNA Framework</h4>
<p>Supported in: Xbox 360, Windows Phone OS 7.0</p>
</div>
<div>
<h2 id="platforms">Platforms</h2>
<p><span id="platformsTitleToggle"></span></p>
<p>For a list of the operating systems and browsers that are supported by Silverlight, see <a href="dd229102%28v%3dvs.95%29" data-linktype="relative-path">Supported Operating Systems and Browsers</a>.</p>
</div>
<div>
<h2 id="thread-safety">Thread Safety</h2>
<p><span id="threadSafetyToggle"></span>Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.</p>
</div>
<div>
<h2 id="see-also">See Also</h2>
<p><span id="seeAlsoToggle"></span></p>
<h4 id="reference">Reference</h4>
<div class="seeAlsoStyle">
<p><a href="y3y47afh%28v%3dvs.95%29" data-linktype="relative-path">System.Xml Namespace</a></p>
</div>
<h4 id="other-resources">Other Resources</h4>
<div class="seeAlsoStyle">
<p><a href="cc189001%28v%3dvs.95%29" data-linktype="relative-path">Processing XML Data with XmlReader and XmlWriter (Silverlight)</a></p>
</div>
</div>
</div>
</div>
</div>

				<!-- </content> -->


			</main>


		</div>

		<div class="sidebar" id="sidebar" data-bi-name="left toc" role="navigation" aria-label="Main Navigation">
			<button class="mobile-toc-header" type="button" aria-label="Close">
				<span>Contents</span>
				<span class="docon docon-math-multiply"></span>
			</button>
			<div id="sidebarContent">
				<div class="filterHolder">
				</div>
				<nav class="toc"></nav>
				<div class="pdfDownloadHolder"></div>
			</div>
			<div class="tocSpace"></div>
		</div>

	</div>

	<div id="openFeedbackContainer" class="openfeedback-container"></div>

	<div class="container footerContainer" >
<footer id="footer" data-bi-name="footer" class="footer-layout" role="contentinfo">
  <div class="container">

    <a data-mscc-ic="false" id="locale-selector-link" href="#" data-bi-name="select-locale"></a>

    <ul class="links" data-bi-name="footerlinks">
		<li><a data-mscc-ic="false" href="https://docs.microsoft.com/previous-versions/" data-bi-name="archivelink">Previous Version Docs</a></li>
		<li><a data-mscc-ic="false" href="https://docs.microsoft.com/teamblog" data-bi-name="bloglink">Blog</a></li>
		<li><a data-mscc-ic="false" href="https://docs.microsoft.com/contribute" data-bi-name="contributorGuide">How to contribute</a></li>
		<li><a data-mscc-ic="false" href="https://privacy.microsoft.com/en-us/" data-bi-name="privacy">Privacy &amp; Cookies</a></li>
		<li><a data-mscc-ic="false" href="/en-us/legal/termsofuse" data-bi-name="termsofuse">Terms of Use</a></li>
		<li><a data-mscc-ic="false" href="https://aka.ms/sitefeedback" data-bi-name="feedback">Feedback</a></li>
		<li><a data-mscc-ic="false" href="https://www.microsoft.com/en-us/legal/intellectualproperty/Trademarks/EN-US.aspx" data-bi-name="trademarks">Trademarks</a></li>
    </ul>
  </div>
</footer>	</div>

</body>
</html>