blob: c9474150f471e3cf07f9bb91eb4e0c0ce9452d2e [file] [log] [blame]
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class XMLWriter
| Apache Lucene.NET 4.8.0-beta00013 Documentation </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class XMLWriter
| Apache Lucene.NET 4.8.0-beta00013 Documentation ">
<meta name="generator" content="docfx 2.56.2.0">
<link rel="shortcut icon" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/logo/favicon.ico">
<link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.vendor.css">
<link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.css">
<link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/main.css">
<meta property="docfx:navrel" content="toc.html">
<meta property="docfx:tocrel" content="benchmark/toc.html">
<meta property="docfx:rel" content="https://lucenenet.apache.org/docs/4.8.0-beta00009/">
</head>
<body data-spy="scroll" data-target="#affix" data-offset="120">
<span id="forkongithub"><a href="https://github.com/apache/lucenenet" target="_blank">Fork me on GitHub</a></span>
<div id="wrapper">
<header>
<nav id="autocollapse" class="navbar ng-scope" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">
<img id="logo" class="svg" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/logo/lucene-net-color.png" alt="">
</a>
</div>
<div class="collapse navbar-collapse" id="navbar">
<form class="navbar-form navbar-right" role="search" id="search">
<div class="form-group">
<input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
</div>
</form>
</div>
</div>
</nav>
<div class="subnav navbar navbar-default">
<div class="container hide-when-search">
<ul class="level0 breadcrumb">
<li>
<a href="https://lucenenet.apache.org/docs/4.8.0-beta00009/">API</a>
<span id="breadcrumb">
<ul class="breadcrumb">
<li></li>
</ul>
</span>
</li>
</ul>
</div>
</div>
</header>
<div class="container body-content">
<div id="search-results">
<div class="search-list"></div>
<div class="sr-items">
<p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
</div>
<ul id="pagination"></ul>
</div>
</div>
<div role="main" class="container body-content hide-when-search">
<div class="sidenav hide-when-search">
<a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
<div class="sidetoggle collapse" id="sidetoggle">
<div id="sidetoc"></div>
</div>
</div>
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="TagSoup.XMLWriter">
<h1 id="TagSoup_XMLWriter" data-uid="TagSoup.XMLWriter" class="text-break">Class XMLWriter
</h1>
<div class="markdown level0 summary"><p>Filter to write an XML document from a SAX event stream.</p>
</div>
<div class="markdown level0 conceptual"></div>
<div class="inheritance">
<h5>Inheritance</h5>
<div class="level0"><span class="xref">System.Object</span></div>
<div class="level1"><a class="xref" href="Sax.Helpers.XMLFilter.html">XMLFilter</a></div>
<div class="level2"><span class="xref">XMLWriter</span></div>
</div>
<div classs="implements">
<h5>Implements</h5>
<div><a class="xref" href="Sax.IXMLFilter.html">IXMLFilter</a></div>
<div><a class="xref" href="Sax.IXMLReader.html">IXMLReader</a></div>
<div><a class="xref" href="Sax.IEntityResolver.html">IEntityResolver</a></div>
<div><a class="xref" href="Sax.IDTDHandler.html">IDTDHandler</a></div>
<div><a class="xref" href="Sax.IContentHandler.html">IContentHandler</a></div>
<div><a class="xref" href="Sax.IErrorHandler.html">IErrorHandler</a></div>
<div><a class="xref" href="Sax.Ext.ILexicalHandler.html">ILexicalHandler</a></div>
</div>
<div class="inheritedMembers">
<h5>Inherited Members</h5>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_Parent">XMLFilter.Parent</a>
</div>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_SetFeature_System_String_System_Boolean_">XMLFilter.SetFeature(String, Boolean)</a>
</div>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_GetFeature_System_String_">XMLFilter.GetFeature(String)</a>
</div>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_SetProperty_System_String_System_Object_">XMLFilter.SetProperty(String, Object)</a>
</div>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_GetProperty_System_String_">XMLFilter.GetProperty(String)</a>
</div>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_EntityResolver">XMLFilter.EntityResolver</a>
</div>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_DTDHandler">XMLFilter.DTDHandler</a>
</div>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_ContentHandler">XMLFilter.ContentHandler</a>
</div>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_ErrorHandler">XMLFilter.ErrorHandler</a>
</div>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_Parse_Sax_InputSource_">XMLFilter.Parse(InputSource)</a>
</div>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_Parse_System_String_">XMLFilter.Parse(String)</a>
</div>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_ResolveEntity_System_String_System_String_">XMLFilter.ResolveEntity(String, String)</a>
</div>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_NotationDecl_System_String_System_String_System_String_">XMLFilter.NotationDecl(String, String, String)</a>
</div>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_UnparsedEntityDecl_System_String_System_String_System_String_System_String_">XMLFilter.UnparsedEntityDecl(String, String, String, String)</a>
</div>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_SetDocumentLocator_Sax_ILocator_">XMLFilter.SetDocumentLocator(ILocator)</a>
</div>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_StartPrefixMapping_System_String_System_String_">XMLFilter.StartPrefixMapping(String, String)</a>
</div>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_EndPrefixMapping_System_String_">XMLFilter.EndPrefixMapping(String)</a>
</div>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_SkippedEntity_System_String_">XMLFilter.SkippedEntity(String)</a>
</div>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_Warning_Sax_SAXParseException_">XMLFilter.Warning(SAXParseException)</a>
</div>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_Error_Sax_SAXParseException_">XMLFilter.Error(SAXParseException)</a>
</div>
<div>
<a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_FatalError_Sax_SAXParseException_">XMLFilter.FatalError(SAXParseException)</a>
</div>
<div>
<span class="xref">System.Object.Equals(System.Object)</span>
</div>
<div>
<span class="xref">System.Object.Equals(System.Object, System.Object)</span>
</div>
<div>
<span class="xref">System.Object.GetHashCode()</span>
</div>
<div>
<span class="xref">System.Object.GetType()</span>
</div>
<div>
<span class="xref">System.Object.MemberwiseClone()</span>
</div>
<div>
<span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
</div>
<div>
<span class="xref">System.Object.ToString()</span>
</div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="TagSoup.html">TagSoup</a></h6>
<h6><strong>Assembly</strong>: Lucene.Net.Benchmark.dll</h6>
<h5 id="TagSoup_XMLWriter_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public class XMLWriter : XMLFilter, IXMLFilter, IXMLReader, IEntityResolver, IDTDHandler, IContentHandler, IErrorHandler, ILexicalHandler</code></pre>
</div>
<h5 id="TagSoup_XMLWriter_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>This class can be used by itself or as part of a SAX event
stream: it takes as input a series of SAX2 ContentHandler
events and uses the information in those events to write
an XML document. Since this class is a filter, it can also
pass the events on down a filter chain for further processing
(you can use the XMLWriter to take a snapshot of the current
state at any point in a filter chain), and it can be
used directly as a ContentHandler for a SAX2 XMLReader.
<p>
The client creates a document by invoking the methods for
standard SAX2 events, always beginning with the
<a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_StartDocument">StartDocument()</a> method and ending with
the <a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_EndDocument">EndDocument()</a> method. There are convenience
methods provided so that clients to not have to create empty
attribute lists or provide empty strings as parameters; for
example, the method invocation
</p></p>
<pre><code> w.StartElement(&quot;foo&quot;);</code></pre>
<p>is equivalent to the regular SAX2 ContentHandler method</p>
<pre><code> w.StartElement(&quot;&quot;, &quot;foo&quot;, &quot;&quot;, new Attributes());</code></pre>
<p>
Except that it is more efficient because it does not allocate
a new empty attribute list each time. The following code will send
a simple XML document to standard output:
</p>
<pre><code> XMLWriter w = new XMLWriter();
w.StartDocument();
w.StartElement(&quot;greeting&quot;);
w.Characters(&quot;Hello, world!&quot;);
w.EndElement(&quot;greeting&quot;);
w.EndDocument();</code></pre>
<p>The resulting document will look like this:</p>
<pre><code>&lt;?xml version=&quot;1.0&quot; standalone=&quot;yes&quot;?>
&lt;greeting>Hello, world!&lt;/greeting></code></pre>
<p>
In fact, there is an even simpler convenience method,
<a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_DataElement_System_String_System_String_">DataElement(String, String)</a>, designed for writing elements that
contain only character data, so the code to generate the
document could be shortened to
</p>
<pre><code> XMLWriter w = new XMLWriter();
w.StartDocument();
w.DataElement(&quot;greeting&quot;, &quot;Hello, world!&quot;);
w.EndDocument();</code></pre>
<h2>Whitespace</h2>
<p>
According to the XML Recommendation, <em>all</em> whitespace
in an XML document is potentially significant to an application,
so this class never adds newlines or indentation. If you
insert three elements in a row, as in
</p>
<pre><code> w.DataElement(&quot;item&quot;, &quot;1&quot;);
w.DataElement(&quot;item&quot;, &quot;2&quot;);
w.DataElement(&quot;item&quot;, &quot;3&quot;);</code></pre>
<p>you will end up with</p>
<pre><code> &lt;item>1&lt;/item>&lt;item>3&lt;/item>&lt;item>3&lt;/item></code></pre>
<p>
You need to invoke one of the <code>Characters</code> methods
explicitly to add newlines or indentation. Alternatively, you
can use DataWriter, which
is derived from this class -- it is optimized for writing
purely data-oriented (or field-oriented) XML, and does automatic
linebreaks and indentation (but does not support mixed content
properly).
</p>
<h2>Namespace Support</h2>
<p>
The writer contains extensive support for XML Namespaces, so that
a client application does not have to keep track of prefixes and
supply <code>xmlns</code> attributes. By default, the XML writer will
generate Namespace declarations in the form _NS1, _NS2, etc., wherever
they are needed, as in the following example:
</p>
<pre><code> w.StartDocument();
w.EmptyElement(&quot;http://www.foo.com/ns/&quot;, &quot;foo&quot;);
w.EndDocument();</code></pre>
<p>The resulting document will look like this:</p>
<pre><code> &lt;?xml version=&quot;1.0&quot; standalone=&quot;yes&quot;?>
&lt;_NS1:foo xmlns:_NS1=&quot;http://www.foo.com/ns/&quot;/></code></pre>
<p>
In many cases, document authors will prefer to choose their
own prefixes rather than using the (ugly) default names. The
XML writer allows two methods for selecting prefixes:
</p>
<ol><li>the qualified name</li><li>the <a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_SetPrefix_System_String_System_String_">SetPrefix(String, String)</a> method.</li></ol>
<p>
Whenever the XML writer finds a new Namespace URI, it checks
to see if a qualified (prefixed) name is also available; if so
it attempts to use the name&apos;s prefix (as long as the prefix is
not already in use for another Namespace URI).
</p>
<p>
Before writing a document, the client can also pre-map a prefix
to a Namespace URI with the setPrefix method:
</p>
<pre><code> w.SetPrefix(&quot;http://www.foo.com/ns/&quot;, &quot;foo&quot;);
w.StartDocument();
w.EmptyElement(&quot;http://www.foo.com/ns/&quot;, &quot;foo&quot;);
w.EndDocument();</code></pre>
<p>The resulting document will look like this:</p>
<pre><code> &lt;?xml version=&quot;1.0&quot; standalone=&quot;yes&quot;?>
&lt;foo:foo xmlns:foo=&quot;http://www.foo.com/ns/&quot;/></code></pre>
<p>The default Namespace simply uses an empty string as the prefix:</p>
<pre><code> w.SetPrefix(&quot;http://www.foo.com/ns/&quot;, &quot;&quot;);
w.StartDocument();
w.EmptyElement(&quot;http://www.foo.com/ns/&quot;, &quot;foo&quot;);
w.EndDocument();</code></pre>
<p>The resulting document will look like this:</p>
<pre><code> &lt;?xml version=&quot;1.0&quot; standalone=&quot;yes&quot;?>
&lt;foo xmlns=&quot;http://www.foo.com/ns/&quot;/></code></pre>
<p>
By default, the XML writer will not declare a Namespace until
it is actually used. Sometimes, this approach will create
a large number of Namespace declarations, as in the following
example:
</p>
<pre><code> &lt;xml version=&quot;1.0&quot; standalone=&quot;yes&quot;?>
&lt;rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot;>
&lt;rdf:Description about=&quot;http://www.foo.com/ids/books/12345&quot;>
&lt;dc:title xmlns:dc=&quot;http://www.purl.org/dc/&quot;>A Dark Night&lt;/dc:title>
&lt;dc:creator xmlns:dc=&quot;http://www.purl.org/dc/&quot;>Jane Smith&lt;/dc:title>
&lt;dc:date xmlns:dc=&quot;http://www.purl.org/dc/&quot;>2000-09-09&lt;/dc:title>
&lt;/rdf:Description>
&lt;/rdf:RDF></code></pre>
<p>
The &quot;rdf&quot; prefix is declared only once, because the RDF Namespace
is used by the root element and can be inherited by all of its
descendants; the &quot;dc&quot; prefix, on the other hand, is declared three
times, because no higher element uses the Namespace. To solve this
problem, you can instruct the XML writer to predeclare Namespaces
on the root element even if they are not used there:
</p>
<pre><code> w.ForceNSDecl(&quot;http://www.purl.org/dc/&quot;);</code></pre>
<p>
Now, the &quot;dc&quot; prefix will be declared on the root element even
though it&apos;s not needed there, and can be inherited by its
descendants:
</p>
<pre><code> &lt;xml version=&quot;1.0&quot; standalone=&quot;yes&quot;?>
&lt;rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot;
xmlns:dc=&quot;http://www.purl.org/dc/&quot;>
&lt;rdf:Description about=&quot;http://www.foo.com/ids/books/12345&quot;>
&lt;dc:title>A Dark Night&lt;/dc:title>
&lt;dc:creator>Jane Smith&lt;/dc:title>
&lt;dc:date>2000-09-09&lt;/dc:title>
&lt;/rdf:Description>
&lt;/rdf:RDF></code></pre>
<p>
This approach is also useful for declaring Namespace prefixes
that be used by qualified names appearing in attribute values or
character data.
</p>
</div>
<h3 id="constructors">Constructors
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter__ctor.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.%23ctor%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L234">View Source</a>
</span>
<a id="TagSoup_XMLWriter__ctor_" data-uid="TagSoup.XMLWriter.#ctor*"></a>
<h4 id="TagSoup_XMLWriter__ctor" data-uid="TagSoup.XMLWriter.#ctor">XMLWriter()</h4>
<div class="markdown level1 summary"><p>Create a new XML writer.
<p>Write to standard output.</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public XMLWriter()</code></pre>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter__ctor_Sax_IXMLReader_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.%23ctor(Sax.IXMLReader)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L260">View Source</a>
</span>
<a id="TagSoup_XMLWriter__ctor_" data-uid="TagSoup.XMLWriter.#ctor*"></a>
<h4 id="TagSoup_XMLWriter__ctor_Sax_IXMLReader_" data-uid="TagSoup.XMLWriter.#ctor(Sax.IXMLReader)">XMLWriter(IXMLReader)</h4>
<div class="markdown level1 summary"><p>Create a new XML writer.
<p>Use the specified XML reader as the parent.</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public XMLWriter(IXMLReader xmlreader)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Sax.IXMLReader.html">IXMLReader</a></td>
<td><span class="parametername">xmlreader</span></td>
<td><p>The parent in the filter chain, or null
for no parent.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter__ctor_Sax_IXMLReader_System_IO_TextWriter_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.%23ctor(Sax.IXMLReader%2CSystem.IO.TextWriter)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L280">View Source</a>
</span>
<a id="TagSoup_XMLWriter__ctor_" data-uid="TagSoup.XMLWriter.#ctor*"></a>
<h4 id="TagSoup_XMLWriter__ctor_Sax_IXMLReader_System_IO_TextWriter_" data-uid="TagSoup.XMLWriter.#ctor(Sax.IXMLReader,System.IO.TextWriter)">XMLWriter(IXMLReader, TextWriter)</h4>
<div class="markdown level1 summary"><p>Create a new XML writer.
<p>
Use the specified XML reader as the parent, and write
to the specified writer.
</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public XMLWriter(IXMLReader xmlreader, TextWriter writer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Sax.IXMLReader.html">IXMLReader</a></td>
<td><span class="parametername">xmlreader</span></td>
<td><p>The parent in the filter chain, or null
for no parent.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.IO.TextWriter</span></td>
<td><span class="parametername">writer</span></td>
<td><p>The output destination, or null to use standard
output.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter__ctor_System_IO_TextWriter_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.%23ctor(System.IO.TextWriter)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L247">View Source</a>
</span>
<a id="TagSoup_XMLWriter__ctor_" data-uid="TagSoup.XMLWriter.#ctor*"></a>
<h4 id="TagSoup_XMLWriter__ctor_System_IO_TextWriter_" data-uid="TagSoup.XMLWriter.#ctor(System.IO.TextWriter)">XMLWriter(TextWriter)</h4>
<div class="markdown level1 summary"><p>Create a new XML writer.
<p>Write to the writer provided.</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public XMLWriter(TextWriter writer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.IO.TextWriter</span></td>
<td><span class="parametername">writer</span></td>
<td><p>The output destination, or null to use standard
output.</p>
</td>
</tr>
</tbody>
</table>
<h3 id="fields">Fields
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_CDATA_SECTION_ELEMENTS.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.CDATA_SECTION_ELEMENTS%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L1519">View Source</a>
</span>
<h4 id="TagSoup_XMLWriter_CDATA_SECTION_ELEMENTS" data-uid="TagSoup.XMLWriter.CDATA_SECTION_ELEMENTS">CDATA_SECTION_ELEMENTS</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const string CDATA_SECTION_ELEMENTS = &quot;cdata-section-elements&quot;</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_DOCTYPE_PUBLIC.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.DOCTYPE_PUBLIC%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L1521">View Source</a>
</span>
<h4 id="TagSoup_XMLWriter_DOCTYPE_PUBLIC" data-uid="TagSoup.XMLWriter.DOCTYPE_PUBLIC">DOCTYPE_PUBLIC</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const string DOCTYPE_PUBLIC = &quot;doctype-public&quot;</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_DOCTYPE_SYSTEM.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.DOCTYPE_SYSTEM%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L1522">View Source</a>
</span>
<h4 id="TagSoup_XMLWriter_DOCTYPE_SYSTEM" data-uid="TagSoup.XMLWriter.DOCTYPE_SYSTEM">DOCTYPE_SYSTEM</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const string DOCTYPE_SYSTEM = &quot;doctype-system&quot;</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_ENCODING.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.ENCODING%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L1523">View Source</a>
</span>
<h4 id="TagSoup_XMLWriter_ENCODING" data-uid="TagSoup.XMLWriter.ENCODING">ENCODING</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const string ENCODING = &quot;encoding&quot;</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_INDENT.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.INDENT%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L1524">View Source</a>
</span>
<h4 id="TagSoup_XMLWriter_INDENT" data-uid="TagSoup.XMLWriter.INDENT">INDENT</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const string INDENT = &quot;indent&quot;</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_MEDIA_TYPE.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.MEDIA_TYPE%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L1525">View Source</a>
</span>
<h4 id="TagSoup_XMLWriter_MEDIA_TYPE" data-uid="TagSoup.XMLWriter.MEDIA_TYPE">MEDIA_TYPE</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const string MEDIA_TYPE = &quot;media-type&quot;</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_METHOD.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.METHOD%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L1526">View Source</a>
</span>
<h4 id="TagSoup_XMLWriter_METHOD" data-uid="TagSoup.XMLWriter.METHOD">METHOD</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const string METHOD = &quot;method&quot;</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_OMIT_XML_DECLARATION.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.OMIT_XML_DECLARATION%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L1527">View Source</a>
</span>
<h4 id="TagSoup_XMLWriter_OMIT_XML_DECLARATION" data-uid="TagSoup.XMLWriter.OMIT_XML_DECLARATION">OMIT_XML_DECLARATION</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const string OMIT_XML_DECLARATION = &quot;omit-xml-declaration&quot;</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_STANDALONE.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.STANDALONE%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L1528">View Source</a>
</span>
<h4 id="TagSoup_XMLWriter_STANDALONE" data-uid="TagSoup.XMLWriter.STANDALONE">STANDALONE</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const string STANDALONE = &quot;standalone&quot;</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_VERSION.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.VERSION%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L1529">View Source</a>
</span>
<h4 id="TagSoup_XMLWriter_VERSION" data-uid="TagSoup.XMLWriter.VERSION">VERSION</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const string VERSION = &quot;version&quot;</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="methods">Methods
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_Characters_System_Char___System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.Characters(System.Char%5B%5D%2CSystem.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L709">View Source</a>
</span>
<a id="TagSoup_XMLWriter_Characters_" data-uid="TagSoup.XMLWriter.Characters*"></a>
<h4 id="TagSoup_XMLWriter_Characters_System_Char___System_Int32_System_Int32_" data-uid="TagSoup.XMLWriter.Characters(System.Char[],System.Int32,System.Int32)">Characters(Char[], Int32, Int32)</h4>
<div class="markdown level1 summary"><p>Write character data.
Pass the event on down the filter chain for further processing.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override void Characters(char[] ch, int start, int length)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Char</span>[]</td>
<td><span class="parametername">ch</span></td>
<td><p>The array of characters to write.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">start</span></td>
<td><p>The starting position in the array.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">length</span></td>
<td><p>The number of characters to write.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_Characters_System_Char___System_Int32_System_Int32_">XMLFilter.Characters(Char[], Int32, Int32)</a></div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Sax.SAXException.html">SAXException</a></td>
<td><p>If there is an error
writing the characters, or if a handler further down
the filter chain raises an exception.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_Characters_System_Char___System_Int32_System_Int32__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="Sax.IContentHandler.html#Sax_IContentHandler_Characters_System_Char___System_Int32_System_Int32_">Characters</a>(<span class="xref">System.Char</span>[], <span class="xref">System.Int32</span>, <span class="xref">System.Int32</span>)</div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_Characters_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.Characters(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L1116">View Source</a>
</span>
<a id="TagSoup_XMLWriter_Characters_" data-uid="TagSoup.XMLWriter.Characters*"></a>
<h4 id="TagSoup_XMLWriter_Characters_System_String_" data-uid="TagSoup.XMLWriter.Characters(System.String)">Characters(String)</h4>
<div class="markdown level1 summary"><p>Write a string of character data, with XML escaping.
<p>
This is a convenience method that takes an XML
string, converts it to a character array, then invokes
<a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_Characters_System_Char___System_Int32_System_Int32_">Characters(Char[], Int32, Int32)</a>.
</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void Characters(string data)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">data</span></td>
<td><p>The character data.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Sax.SAXException.html">SAXException</a></td>
<td><p>If there is an error
writing the string, or if a handler further down
the filter chain raises an exception.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_Characters_System_String__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_Characters_System_Char___System_Int32_System_Int32_">Characters(Char[], Int32, Int32)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_Comment_System_Char___System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.Comment(System.Char%5B%5D%2CSystem.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L1455">View Source</a>
</span>
<a id="TagSoup_XMLWriter_Comment_" data-uid="TagSoup.XMLWriter.Comment*"></a>
<h4 id="TagSoup_XMLWriter_Comment_System_Char___System_Int32_System_Int32_" data-uid="TagSoup.XMLWriter.Comment(System.Char[],System.Int32,System.Int32)">Comment(Char[], Int32, Int32)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void Comment(char[] ch, int start, int length)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Char</span>[]</td>
<td><span class="parametername">ch</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">start</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">length</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_DataElement_System_String_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.DataElement(System.String%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L1094">View Source</a>
</span>
<a id="TagSoup_XMLWriter_DataElement_" data-uid="TagSoup.XMLWriter.DataElement*"></a>
<h4 id="TagSoup_XMLWriter_DataElement_System_String_System_String_" data-uid="TagSoup.XMLWriter.DataElement(System.String,System.String)">DataElement(String, String)</h4>
<div class="markdown level1 summary"><p>Write an element with character data content but no attributes or Namespace URI.
<p>
This is a convenience method to write a complete element
with character data content, including the start tag
and end tag. The method provides an empty string for the
Namespace URI, and empty string for the qualified name,
and an empty attribute list.
</p>
<p>
This method invokes
<a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_StartElement_System_String_System_String_System_String_Sax_IAttributes_">StartElement(String, String, String, IAttributes)</a>,
followed by
<a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_Characters_System_String_">Characters(String)</a>, followed by
<a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_EndElement_System_String_System_String_System_String_">EndElement(String, String, String)</a>.
</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void DataElement(string localName, string content)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">localName</span></td>
<td><p>The element&apos;s local name.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">content</span></td>
<td><p>The character data content.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Sax.SAXException.html">SAXException</a></td>
<td><p>If there is an error
writing the empty tag, or if a handler further down
the filter chain raises an exception.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_DataElement_System_String_System_String__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_StartElement_System_String_System_String_System_String_Sax_IAttributes_">StartElement(String, String, String, IAttributes)</a></div>
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_Characters_System_String_">Characters(String)</a></div>
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_EndElement_System_String_System_String_System_String_">EndElement(String, String, String)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_DataElement_System_String_System_String_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.DataElement(System.String%2CSystem.String%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L1058">View Source</a>
</span>
<a id="TagSoup_XMLWriter_DataElement_" data-uid="TagSoup.XMLWriter.DataElement*"></a>
<h4 id="TagSoup_XMLWriter_DataElement_System_String_System_String_System_String_" data-uid="TagSoup.XMLWriter.DataElement(System.String,System.String,System.String)">DataElement(String, String, String)</h4>
<div class="markdown level1 summary"><p>Write an element with character data content but no attributes.
<p>
This is a convenience method to write a complete element
with character data content, including the start tag
and end tag. This method provides an empty string
for the qname and an empty attribute list.
</p>
<p>
This method invokes
<a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_StartElement_System_String_System_String_System_String_Sax_IAttributes_">StartElement(String, String, String, IAttributes)</a>,
followed by
<a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_Characters_System_String_">Characters(String)</a>, followed by
<a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_EndElement_System_String_System_String_System_String_">EndElement(String, String, String)</a>.
</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void DataElement(string uri, string localName, string content)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">uri</span></td>
<td><p>The element&apos;s Namespace URI.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">localName</span></td>
<td><p>The element&apos;s local name.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">content</span></td>
<td><p>The character data content.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Sax.SAXException.html">SAXException</a></td>
<td><p>If there is an error
writing the empty tag, or if a handler further down
the filter chain raises an exception.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_DataElement_System_String_System_String_System_String__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_StartElement_System_String_System_String_System_String_Sax_IAttributes_">StartElement(String, String, String, IAttributes)</a></div>
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_Characters_System_String_">Characters(String)</a></div>
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_EndElement_System_String_System_String_System_String_">EndElement(String, String, String)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_DataElement_System_String_System_String_System_String_Sax_IAttributes_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.DataElement(System.String%2CSystem.String%2CSystem.String%2CSax.IAttributes%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L1018">View Source</a>
</span>
<a id="TagSoup_XMLWriter_DataElement_" data-uid="TagSoup.XMLWriter.DataElement*"></a>
<h4 id="TagSoup_XMLWriter_DataElement_System_String_System_String_System_String_Sax_IAttributes_System_String_" data-uid="TagSoup.XMLWriter.DataElement(System.String,System.String,System.String,Sax.IAttributes,System.String)">DataElement(String, String, String, IAttributes, String)</h4>
<div class="markdown level1 summary"><p>Write an element with character data content.
<p>
This is a convenience method to write a complete element
with character data content, including the start tag
and end tag.
</p>
<p>
This method invokes
<a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_StartElement_System_String_System_String_System_String_Sax_IAttributes_">StartElement(String, String, String, IAttributes)</a>,
followed by
<a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_Characters_System_String_">Characters(String)</a>, followed by
<a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_EndElement_System_String_System_String_System_String_">EndElement(String, String, String)</a>.
</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void DataElement(string uri, string localName, string qName, IAttributes atts, string content)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">uri</span></td>
<td><p>The element&apos;s Namespace URI.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">localName</span></td>
<td><p>The element&apos;s local name.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">qName</span></td>
<td><p>The element&apos;s default qualified name.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="Sax.IAttributes.html">IAttributes</a></td>
<td><span class="parametername">atts</span></td>
<td><p>The element&apos;s attributes.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">content</span></td>
<td><p>The character data content.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Sax.SAXException.html">SAXException</a></td>
<td><p>If there is an error
writing the empty tag, or if a handler further down
the filter chain raises an exception.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_DataElement_System_String_System_String_System_String_Sax_IAttributes_System_String__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_StartElement_System_String_System_String_System_String_Sax_IAttributes_">StartElement(String, String, String, IAttributes)</a></div>
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_Characters_System_String_">Characters(String)</a></div>
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_EndElement_System_String_System_String_System_String_">EndElement(String, String, String)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_EmptyElement_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.EmptyElement(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L975">View Source</a>
</span>
<a id="TagSoup_XMLWriter_EmptyElement_" data-uid="TagSoup.XMLWriter.EmptyElement*"></a>
<h4 id="TagSoup_XMLWriter_EmptyElement_System_String_" data-uid="TagSoup.XMLWriter.EmptyElement(System.String)">EmptyElement(String)</h4>
<div class="markdown level1 summary"><p>Add an empty element without a Namespace URI, qname or attributes.
<p>
This method will supply an empty string for the qname,
and empty string for the Namespace URI, and an empty
attribute list. It invokes
<a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_EmptyElement_System_String_System_String_System_String_Sax_IAttributes_">EmptyElement(String, String, String, IAttributes)</a>
directly.
</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void EmptyElement(string localName)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">localName</span></td>
<td><p>The element&apos;s local name.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Sax.SAXException.html">SAXException</a></td>
<td><p>If there is an error
writing the empty tag, or if a handler further down
the filter chain raises an exception.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_EmptyElement_System_String__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_EmptyElement_System_String_System_String_System_String_Sax_IAttributes_">EmptyElement(String, String, String, IAttributes)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_EmptyElement_System_String_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.EmptyElement(System.String%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L951">View Source</a>
</span>
<a id="TagSoup_XMLWriter_EmptyElement_" data-uid="TagSoup.XMLWriter.EmptyElement*"></a>
<h4 id="TagSoup_XMLWriter_EmptyElement_System_String_System_String_" data-uid="TagSoup.XMLWriter.EmptyElement(System.String,System.String)">EmptyElement(String, String)</h4>
<div class="markdown level1 summary"><p>Add an empty element without a qname or attributes.
<p>
This method will supply an empty string for the qname
and an empty attribute list. It invokes
<a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_EmptyElement_System_String_System_String_System_String_Sax_IAttributes_">EmptyElement(String, String, String, IAttributes)</a>
directly.
</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void EmptyElement(string uri, string localName)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">uri</span></td>
<td><p>The element&apos;s Namespace URI.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">localName</span></td>
<td><p>The element&apos;s local name.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Sax.SAXException.html">SAXException</a></td>
<td><p>If there is an error
writing the empty tag, or if a handler further down
the filter chain raises an exception.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_EmptyElement_System_String_System_String__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_EmptyElement_System_String_System_String_System_String_Sax_IAttributes_">EmptyElement(String, String, String, IAttributes)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_EmptyElement_System_String_System_String_System_String_Sax_IAttributes_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.EmptyElement(System.String%2CSystem.String%2CSystem.String%2CSax.IAttributes)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L816">View Source</a>
</span>
<a id="TagSoup_XMLWriter_EmptyElement_" data-uid="TagSoup.XMLWriter.EmptyElement*"></a>
<h4 id="TagSoup_XMLWriter_EmptyElement_System_String_System_String_System_String_Sax_IAttributes_" data-uid="TagSoup.XMLWriter.EmptyElement(System.String,System.String,System.String,Sax.IAttributes)">EmptyElement(String, String, String, IAttributes)</h4>
<div class="markdown level1 summary"><p>Write an empty element.
This method writes an empty element tag rather than a start tag
followed by an end tag. Both a <a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_StartElement_System_String_System_String_System_String_Sax_IAttributes_">StartElement(String, String, String, IAttributes)</a>
and an <a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_EndElement_System_String_System_String_System_String_">EndElement(String, String, String)</a> event will
be passed on down the filter chain.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void EmptyElement(string uri, string localName, string qName, IAttributes atts)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">uri</span></td>
<td><p>The element&apos;s Namespace URI, or the empty string
if the element has no Namespace or if Namespace
processing is not being performed.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">localName</span></td>
<td><p>The element&apos;s local name (without prefix). This
parameter must be provided.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">qName</span></td>
<td><p>The element&apos;s qualified name (with prefix), or
the empty string if none is available. This parameter
is strictly advisory: the writer may or may not use
the prefix attached.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="Sax.IAttributes.html">IAttributes</a></td>
<td><span class="parametername">atts</span></td>
<td><p>The element&apos;s attribute list.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Sax.SAXException.html">SAXException</a></td>
<td><p>If there is an error
writing the empty tag, or if a handler further down
the filter chain raises an exception.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_EmptyElement_System_String_System_String_System_String_Sax_IAttributes__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_StartElement_System_String_">StartElement(String)</a></div>
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_StartElement_System_String_System_String_">StartElement(String, String)</a></div>
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_StartElement_System_String_System_String_System_String_Sax_IAttributes_">StartElement(String, String, String, IAttributes)</a></div>
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_EndElement_System_String_">EndElement(String)</a></div>
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_EndElement_System_String_System_String_">EndElement(String, String)</a></div>
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_EndElement_System_String_System_String_System_String_">EndElement(String, String, String)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_EndCDATA.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.EndCDATA%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L285">View Source</a>
</span>
<a id="TagSoup_XMLWriter_EndCDATA_" data-uid="TagSoup.XMLWriter.EndCDATA*"></a>
<h4 id="TagSoup_XMLWriter_EndCDATA" data-uid="TagSoup.XMLWriter.EndCDATA">EndCDATA()</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void EndCDATA()</code></pre>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_EndDocument.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.EndDocument%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L576">View Source</a>
</span>
<a id="TagSoup_XMLWriter_EndDocument_" data-uid="TagSoup.XMLWriter.EndDocument*"></a>
<h4 id="TagSoup_XMLWriter_EndDocument" data-uid="TagSoup.XMLWriter.EndDocument">EndDocument()</h4>
<div class="markdown level1 summary"><p>Write a newline at the end of the document.
Pass the event on down the filter chain for further processing.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override void EndDocument()</code></pre>
</div>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_EndDocument">XMLFilter.EndDocument()</a></div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Sax.SAXException.html">SAXException</a></td>
<td><p>If there is an error
writing the newline, or if a handler further down
the filter chain raises an exception.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_EndDocument_seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="Sax.IContentHandler.html#Sax_IContentHandler_EndDocument">EndDocument</a>()</div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_EndDTD.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.EndDTD%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L289">View Source</a>
</span>
<a id="TagSoup_XMLWriter_EndDTD_" data-uid="TagSoup.XMLWriter.EndDTD*"></a>
<h4 id="TagSoup_XMLWriter_EndDTD" data-uid="TagSoup.XMLWriter.EndDTD">EndDTD()</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void EndDTD()</code></pre>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_EndElement_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.EndElement(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L925">View Source</a>
</span>
<a id="TagSoup_XMLWriter_EndElement_" data-uid="TagSoup.XMLWriter.EndElement*"></a>
<h4 id="TagSoup_XMLWriter_EndElement_System_String_" data-uid="TagSoup.XMLWriter.EndElement(System.String)">EndElement(String)</h4>
<div class="markdown level1 summary"><p>End an element without a Namespace URI or qname.
<p>
This method will supply an empty string for the qName
and an empty string for the Namespace URI.
It invokes <a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_EndElement_System_String_System_String_System_String_">EndElement(String, String, String)</a>
directly.
</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void EndElement(string localName)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">localName</span></td>
<td><p>The element&apos;s local name.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Sax.SAXException.html">SAXException</a></td>
<td><p>If there is an error
writing the end tag, or if a handler further down
the filter chain raises an exception.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_EndElement_System_String__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_EndElement_System_String_System_String_System_String_">EndElement(String, String, String)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_EndElement_System_String_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.EndElement(System.String%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L902">View Source</a>
</span>
<a id="TagSoup_XMLWriter_EndElement_" data-uid="TagSoup.XMLWriter.EndElement*"></a>
<h4 id="TagSoup_XMLWriter_EndElement_System_String_System_String_" data-uid="TagSoup.XMLWriter.EndElement(System.String,System.String)">EndElement(String, String)</h4>
<div class="markdown level1 summary"><p>End an element without a qname.
<p>
This method will supply an empty string for the qName.
It invokes <a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_EndElement_System_String_System_String_System_String_">EndElement(String, String, String)</a>
directly.
</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void EndElement(string uri, string localName)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">uri</span></td>
<td><p>The element&apos;s Namespace URI.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">localName</span></td>
<td><p>The element&apos;s local name.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Sax.SAXException.html">SAXException</a></td>
<td><p>If there is an error
writing the end tag, or if a handler further down
the filter chain raises an exception.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_EndElement_System_String_System_String__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_EndElement_System_String_System_String_System_String_">EndElement(String, String, String)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_EndElement_System_String_System_String_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.EndElement(System.String%2CSystem.String%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L667">View Source</a>
</span>
<a id="TagSoup_XMLWriter_EndElement_" data-uid="TagSoup.XMLWriter.EndElement*"></a>
<h4 id="TagSoup_XMLWriter_EndElement_System_String_System_String_System_String_" data-uid="TagSoup.XMLWriter.EndElement(System.String,System.String,System.String)">EndElement(String, String, String)</h4>
<div class="markdown level1 summary"><p>Write an end tag.
Pass the event on down the filter chain for further processing.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override void EndElement(string uri, string localName, string qName)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">uri</span></td>
<td><p>The Namespace URI, or the empty string if none
is available.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">localName</span></td>
<td><p>The element&apos;s local (unprefixed) name (required).</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">qName</span></td>
<td><p>The element&apos;s qualified (prefixed) name, or the
empty string is none is available. This method will
use the qName as a template for generating a prefix
if necessary, but it is not guaranteed to use the
same qName.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_EndElement_System_String_System_String_System_String_">XMLFilter.EndElement(String, String, String)</a></div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Sax.SAXException.html">SAXException</a></td>
<td><p>If there is an error
writing the end tag, or if a handler further down
the filter chain raises an exception.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_EndElement_System_String_System_String_System_String__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="Sax.IContentHandler.html#Sax_IContentHandler_EndElement_System_String_System_String_System_String_">EndElement</a>(<span class="xref">System.String</span>, <span class="xref">System.String</span>, <span class="xref">System.String</span>)</div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_EndEntity_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.EndEntity(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L293">View Source</a>
</span>
<a id="TagSoup_XMLWriter_EndEntity_" data-uid="TagSoup.XMLWriter.EndEntity*"></a>
<h4 id="TagSoup_XMLWriter_EndEntity_System_String_" data-uid="TagSoup.XMLWriter.EndEntity(System.String)">EndEntity(String)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void EndEntity(string name)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">name</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_Flush.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.Flush%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L411">View Source</a>
</span>
<a id="TagSoup_XMLWriter_Flush_" data-uid="TagSoup.XMLWriter.Flush*"></a>
<h4 id="TagSoup_XMLWriter_Flush" data-uid="TagSoup.XMLWriter.Flush">Flush()</h4>
<div class="markdown level1 summary"><p>Flush the output.
<p>
This method flushes the output stream. It is especially useful
when you need to make certain that the entire document has
been written to output but do not want to close the output
stream.
</p>
<p>
This method is invoked automatically by the
<a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_EndDocument">EndDocument()</a> method after writing a
document.
</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void Flush()</code></pre>
</div>
<h5 id="TagSoup_XMLWriter_Flush_seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_Reset">Reset()</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_ForceNSDecl_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.ForceNSDecl(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L489">View Source</a>
</span>
<a id="TagSoup_XMLWriter_ForceNSDecl_" data-uid="TagSoup.XMLWriter.ForceNSDecl*"></a>
<h4 id="TagSoup_XMLWriter_ForceNSDecl_System_String_" data-uid="TagSoup.XMLWriter.ForceNSDecl(System.String)">ForceNSDecl(String)</h4>
<div class="markdown level1 summary"><p>Force a Namespace to be declared on the root element.
<p>
By default, the XMLWriter will declare only the Namespaces
needed for an element; as a result, a Namespace may be
declared many places in a document if it is not used on the
root element.
</p>
<p>
This method forces a Namespace to be declared on the root
element even if it is not used there, and reduces the number
of xmlns attributes in the document.
</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void ForceNSDecl(string uri)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">uri</span></td>
<td><p>The Namespace URI to declare.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_ForceNSDecl_System_String__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_ForceNSDecl_System_String_System_String_">ForceNSDecl(String, String)</a></div>
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_SetPrefix_System_String_System_String_">SetPrefix(String, String)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_ForceNSDecl_System_String_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.ForceNSDecl(System.String%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L510">View Source</a>
</span>
<a id="TagSoup_XMLWriter_ForceNSDecl_" data-uid="TagSoup.XMLWriter.ForceNSDecl*"></a>
<h4 id="TagSoup_XMLWriter_ForceNSDecl_System_String_System_String_" data-uid="TagSoup.XMLWriter.ForceNSDecl(System.String,System.String)">ForceNSDecl(String, String)</h4>
<div class="markdown level1 summary"><p>Force a Namespace declaration with a preferred prefix.
<p>
This is a convenience method that invokes <a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_SetPrefix_System_String_System_String_">SetPrefix(String, String)</a>
then <a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_ForceNSDecl_System_String_">ForceNSDecl(String)</a>.
</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void ForceNSDecl(string uri, string prefix)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">uri</span></td>
<td><p>The Namespace URI to declare on the root element.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">prefix</span></td>
<td><p>The preferred prefix for the Namespace, or &quot;&quot;
for the default Namespace.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_ForceNSDecl_System_String_System_String__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_SetPrefix_System_String_System_String_">SetPrefix(String, String)</a></div>
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_ForceNSDecl_System_String_">ForceNSDecl(String)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_GetOutputProperty_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.GetOutputProperty(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L1474">View Source</a>
</span>
<a id="TagSoup_XMLWriter_GetOutputProperty_" data-uid="TagSoup.XMLWriter.GetOutputProperty*"></a>
<h4 id="TagSoup_XMLWriter_GetOutputProperty_System_String_" data-uid="TagSoup.XMLWriter.GetOutputProperty(System.String)">GetOutputProperty(String)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual string GetOutputProperty(string key)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">key</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_GetPrefix_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.GetPrefix(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L465">View Source</a>
</span>
<a id="TagSoup_XMLWriter_GetPrefix_" data-uid="TagSoup.XMLWriter.GetPrefix*"></a>
<h4 id="TagSoup_XMLWriter_GetPrefix_System_String_" data-uid="TagSoup.XMLWriter.GetPrefix(System.String)">GetPrefix(String)</h4>
<div class="markdown level1 summary"><p>Get the current or preferred prefix for a Namespace URI.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual string GetPrefix(string uri)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">uri</span></td>
<td><p>The Namespace URI.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>The preferred prefix, or &quot;&quot; for the default Namespace.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_GetPrefix_System_String__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_SetPrefix_System_String_System_String_">SetPrefix(String, String)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_IgnorableWhitespace_System_Char___System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.IgnorableWhitespace(System.Char%5B%5D%2CSystem.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L744">View Source</a>
</span>
<a id="TagSoup_XMLWriter_IgnorableWhitespace_" data-uid="TagSoup.XMLWriter.IgnorableWhitespace*"></a>
<h4 id="TagSoup_XMLWriter_IgnorableWhitespace_System_Char___System_Int32_System_Int32_" data-uid="TagSoup.XMLWriter.IgnorableWhitespace(System.Char[],System.Int32,System.Int32)">IgnorableWhitespace(Char[], Int32, Int32)</h4>
<div class="markdown level1 summary"><p>Write ignorable whitespace.
Pass the event on down the filter chain for further processing.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override void IgnorableWhitespace(char[] ch, int start, int length)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Char</span>[]</td>
<td><span class="parametername">ch</span></td>
<td><p>The array of characters to write.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">start</span></td>
<td><p>The starting position in the array.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">length</span></td>
<td><p>The number of characters to write.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_IgnorableWhitespace_System_Char___System_Int32_System_Int32_">XMLFilter.IgnorableWhitespace(Char[], Int32, Int32)</a></div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Sax.SAXException.html">SAXException</a></td>
<td><p>If there is an error
writing the whitespace, or if a handler further down
the filter chain raises an exception.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_IgnorableWhitespace_System_Char___System_Int32_System_Int32__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="Sax.IContentHandler.html#Sax_IContentHandler_IgnorableWhitespace_System_Char___System_Int32_System_Int32_">IgnorableWhitespace</a>(<span class="xref">System.Char</span>[], <span class="xref">System.Int32</span>, <span class="xref">System.Int32</span>)</div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_ProcessingInstruction_System_String_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.ProcessingInstruction(System.String%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L766">View Source</a>
</span>
<a id="TagSoup_XMLWriter_ProcessingInstruction_" data-uid="TagSoup.XMLWriter.ProcessingInstruction*"></a>
<h4 id="TagSoup_XMLWriter_ProcessingInstruction_System_String_System_String_" data-uid="TagSoup.XMLWriter.ProcessingInstruction(System.String,System.String)">ProcessingInstruction(String, String)</h4>
<div class="markdown level1 summary"><p>Write a processing instruction.
Pass the event on down the filter chain for further processing.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override void ProcessingInstruction(string target, string data)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">target</span></td>
<td><p>The PI target.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">data</span></td>
<td><p>The PI data.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_ProcessingInstruction_System_String_System_String_">XMLFilter.ProcessingInstruction(String, String)</a></div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Sax.SAXException.html">SAXException</a></td>
<td><p>If there is an error
writing the PI, or if a handler further down
the filter chain raises an exception.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_ProcessingInstruction_System_String_System_String__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="Sax.IContentHandler.html#Sax_IContentHandler_ProcessingInstruction_System_String_System_String_">ProcessingInstruction</a>(<span class="xref">System.String</span>, <span class="xref">System.String</span>)</div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_Reset.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.Reset%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L389">View Source</a>
</span>
<a id="TagSoup_XMLWriter_Reset_" data-uid="TagSoup.XMLWriter.Reset*"></a>
<h4 id="TagSoup_XMLWriter_Reset" data-uid="TagSoup.XMLWriter.Reset">Reset()</h4>
<div class="markdown level1 summary"><p>Reset the writer.
<p>
This method is especially useful if the writer throws an
exception before it is finished, and you want to reuse the
writer for a new document. It is usually a good idea to
invoke <a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_Flush">Flush()</a> before resetting the writer,
to make sure that no output is lost.
</p>
<p>
This method is invoked automatically by the
<a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_StartDocument">StartDocument()</a> method before writing
a new document.
</p>
<p>
<strong>Note:</strong> this method will <em>not</em>
clear the prefix or URI information in the writer or
the selected output writer.
</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void Reset()</code></pre>
</div>
<h5 id="TagSoup_XMLWriter_Reset_seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_Flush">Flush()</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_SetOutput_System_IO_TextWriter_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.SetOutput(System.IO.TextWriter)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L424">View Source</a>
</span>
<a id="TagSoup_XMLWriter_SetOutput_" data-uid="TagSoup.XMLWriter.SetOutput*"></a>
<h4 id="TagSoup_XMLWriter_SetOutput_System_IO_TextWriter_" data-uid="TagSoup.XMLWriter.SetOutput(System.IO.TextWriter)">SetOutput(TextWriter)</h4>
<div class="markdown level1 summary"><p>Set a new output destination for the document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void SetOutput(TextWriter writer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.IO.TextWriter</span></td>
<td><span class="parametername">writer</span></td>
<td><p>The output destination, or null to use
standard output.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_SetOutput_System_IO_TextWriter__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_Flush">Flush()</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_SetOutputProperty_System_String_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.SetOutputProperty(System.String%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L1479">View Source</a>
</span>
<a id="TagSoup_XMLWriter_SetOutputProperty_" data-uid="TagSoup.XMLWriter.SetOutputProperty*"></a>
<h4 id="TagSoup_XMLWriter_SetOutputProperty_System_String_System_String_" data-uid="TagSoup.XMLWriter.SetOutputProperty(System.String,System.String)">SetOutputProperty(String, String)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void SetOutputProperty(string key, string value)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">key</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">value</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_SetPrefix_System_String_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.SetPrefix(System.String%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L454">View Source</a>
</span>
<a id="TagSoup_XMLWriter_SetPrefix_" data-uid="TagSoup.XMLWriter.SetPrefix*"></a>
<h4 id="TagSoup_XMLWriter_SetPrefix_System_String_System_String_" data-uid="TagSoup.XMLWriter.SetPrefix(System.String,System.String)">SetPrefix(String, String)</h4>
<div class="markdown level1 summary"><p>Specify a preferred prefix for a Namespace URI.
<p>
Note that this method does not actually force the Namespace
to be declared; to do that, use the <a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_ForceNSDecl_System_String_">ForceNSDecl(String)</a>
method as well.
</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void SetPrefix(string uri, string prefix)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">uri</span></td>
<td><p>The Namespace URI.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">prefix</span></td>
<td><p>The preferred prefix, or &quot;&quot; to select
the default Namespace.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_SetPrefix_System_String_System_String__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_GetPrefix_System_String_">GetPrefix(String)</a></div>
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_ForceNSDecl_System_String_">ForceNSDecl(String)</a></div>
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_ForceNSDecl_System_String_System_String_">ForceNSDecl(String, String)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_StartCDATA.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.StartCDATA%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L297">View Source</a>
</span>
<a id="TagSoup_XMLWriter_StartCDATA_" data-uid="TagSoup.XMLWriter.StartCDATA*"></a>
<h4 id="TagSoup_XMLWriter_StartCDATA" data-uid="TagSoup.XMLWriter.StartCDATA">StartCDATA()</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void StartCDATA()</code></pre>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_StartDocument.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.StartDocument%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L530">View Source</a>
</span>
<a id="TagSoup_XMLWriter_StartDocument_" data-uid="TagSoup.XMLWriter.StartDocument*"></a>
<h4 id="TagSoup_XMLWriter_StartDocument" data-uid="TagSoup.XMLWriter.StartDocument">StartDocument()</h4>
<div class="markdown level1 summary"><p>Write the XML declaration at the beginning of the document.
Pass the event on down the filter chain for further processing.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override void StartDocument()</code></pre>
</div>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_StartDocument">XMLFilter.StartDocument()</a></div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Sax.SAXException.html">SAXException</a></td>
<td><p>If there is an error
writing the XML declaration, or if a handler further down
the filter chain raises an exception.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_StartDocument_seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="Sax.IContentHandler.html#Sax_IContentHandler_StartDocument">StartDocument</a>()</div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_StartDTD_System_String_System_String_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.StartDTD(System.String%2CSystem.String%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L301">View Source</a>
</span>
<a id="TagSoup_XMLWriter_StartDTD_" data-uid="TagSoup.XMLWriter.StartDTD*"></a>
<h4 id="TagSoup_XMLWriter_StartDTD_System_String_System_String_System_String_" data-uid="TagSoup.XMLWriter.StartDTD(System.String,System.String,System.String)">StartDTD(String, String, String)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void StartDTD(string name, string publicid, string systemid)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">name</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">publicid</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">systemid</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_StartElement_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.StartElement(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L877">View Source</a>
</span>
<a id="TagSoup_XMLWriter_StartElement_" data-uid="TagSoup.XMLWriter.StartElement*"></a>
<h4 id="TagSoup_XMLWriter_StartElement_System_String_" data-uid="TagSoup.XMLWriter.StartElement(System.String)">StartElement(String)</h4>
<div class="markdown level1 summary"><p>Start a new element without a qname, attributes or a Namespace URI.
<p>
This method will provide an empty string for the
Namespace URI, and empty string for the qualified name,
and a default empty attribute list. It invokes</p>
<h1 id="startelementstring-string-string-attributes">startElement(string, string, string, Attributes)}</h1>
<p>directly.
</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void StartElement(string localName)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">localName</span></td>
<td><p>The element&apos;s local name.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Sax.SAXException.html">SAXException</a></td>
<td><p>If there is an error
writing the start tag, or if a handler further down
the filter chain raises an exception.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_StartElement_System_String__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_StartElement_System_String_System_String_System_String_Sax_IAttributes_">StartElement(String, String, String, IAttributes)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_StartElement_System_String_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.StartElement(System.String%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L853">View Source</a>
</span>
<a id="TagSoup_XMLWriter_StartElement_" data-uid="TagSoup.XMLWriter.StartElement*"></a>
<h4 id="TagSoup_XMLWriter_StartElement_System_String_System_String_" data-uid="TagSoup.XMLWriter.StartElement(System.String,System.String)">StartElement(String, String)</h4>
<div class="markdown level1 summary"><p>Start a new element without a qname or attributes.
<p>
This method will provide a default empty attribute
list and an empty string for the qualified name.
It invokes <a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_StartElement_System_String_System_String_System_String_Sax_IAttributes_">StartElement(String, String, String, IAttributes)</a>
directly.
</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void StartElement(string uri, string localName)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">uri</span></td>
<td><p>The element&apos;s Namespace URI.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">localName</span></td>
<td><p>The element&apos;s local name.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Sax.SAXException.html">SAXException</a></td>
<td><p>If there is an error
writing the start tag, or if a handler further down
the filter chain raises an exception.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_StartElement_System_String_System_String__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="TagSoup.XMLWriter.html#TagSoup_XMLWriter_StartElement_System_String_System_String_System_String_Sax_IAttributes_">StartElement(String, String, String, IAttributes)</a></div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_StartElement_System_String_System_String_System_String_Sax_IAttributes_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.StartElement(System.String%2CSystem.String%2CSystem.String%2CSax.IAttributes)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L617">View Source</a>
</span>
<a id="TagSoup_XMLWriter_StartElement_" data-uid="TagSoup.XMLWriter.StartElement*"></a>
<h4 id="TagSoup_XMLWriter_StartElement_System_String_System_String_System_String_Sax_IAttributes_" data-uid="TagSoup.XMLWriter.StartElement(System.String,System.String,System.String,Sax.IAttributes)">StartElement(String, String, String, IAttributes)</h4>
<div class="markdown level1 summary"><p>Write a start tag.
Pass the event on down the filter chain for further processing.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override void StartElement(string uri, string localName, string qName, IAttributes atts)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">uri</span></td>
<td><p>The Namespace URI, or the empty string if none
is available.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">localName</span></td>
<td><p>The element&apos;s local (unprefixed) name (required).</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">qName</span></td>
<td><p>The element&apos;s qualified (prefixed) name, or the
empty string is none is available. This method will
use the qName as a template for generating a prefix
if necessary, but it is not guaranteed to use the
same qName.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="Sax.IAttributes.html">IAttributes</a></td>
<td><span class="parametername">atts</span></td>
<td><p>The element&apos;s attribute list (must not be null).</p>
</td>
</tr>
</tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="Sax.Helpers.XMLFilter.html#Sax_Helpers_XMLFilter_StartElement_System_String_System_String_System_String_Sax_IAttributes_">XMLFilter.StartElement(String, String, String, IAttributes)</a></div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Sax.SAXException.html">SAXException</a></td>
<td><p>If there is an error
writing the start tag, or if a handler further down
the filter chain raises an exception.</p>
</td>
</tr>
</tbody>
</table>
<h5 id="TagSoup_XMLWriter_StartElement_System_String_System_String_System_String_Sax_IAttributes__seealso">See Also</h5>
<div class="seealso">
<div><a class="xref" href="Sax.IContentHandler.html#Sax_IContentHandler_StartElement_System_String_System_String_System_String_Sax_IAttributes_">StartElement</a>(<span class="xref">System.String</span>, <span class="xref">System.String</span>, <span class="xref">System.String</span>, <a class="xref" href="Sax.IAttributes.html">IAttributes</a>)</div>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter_StartEntity_System_String_.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter.StartEntity(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L346">View Source</a>
</span>
<a id="TagSoup_XMLWriter_StartEntity_" data-uid="TagSoup.XMLWriter.StartEntity*"></a>
<h4 id="TagSoup_XMLWriter_StartEntity_System_String_" data-uid="TagSoup.XMLWriter.StartEntity(System.String)">StartEntity(String)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void StartEntity(string name)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">name</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="implements">Implements</h3>
<div>
<a class="xref" href="Sax.IXMLFilter.html">IXMLFilter</a>
</div>
<div>
<a class="xref" href="Sax.IXMLReader.html">IXMLReader</a>
</div>
<div>
<a class="xref" href="Sax.IEntityResolver.html">IEntityResolver</a>
</div>
<div>
<a class="xref" href="Sax.IDTDHandler.html">IDTDHandler</a>
</div>
<div>
<a class="xref" href="Sax.IContentHandler.html">IContentHandler</a>
</div>
<div>
<a class="xref" href="Sax.IErrorHandler.html">IErrorHandler</a>
</div>
<div>
<a class="xref" href="Sax.Ext.ILexicalHandler.html">ILexicalHandler</a>
</div>
<h3 id="seealso">See Also</h3>
<div class="seealso">
<div><a class="xref" href="Sax.IXMLFilter.html">IXMLFilter</a></div>
<div><a class="xref" href="Sax.IContentHandler.html">IContentHandler</a></div>
</div>
</article>
</div>
<div class="hidden-sm col-md-2" role="complementary">
<div class="sideaffix">
<div class="contribution">
<ul class="nav">
<li>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00013/websites/apidocs/apiSpec/new?filename=TagSoup_XMLWriter.md&amp;value=---%0Auid%3A%20TagSoup.XMLWriter%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
</li>
<li>
<a href="https://github.com/apache/lucenenet/blob/fix/apidocs-layout/src/Lucene.Net.Benchmark/Support/TagSoup/XMLWriter.cs/#L224" class="contribution-link">View Source</a>
</li>
</ul>
</div>
<nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
<!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
</nav>
</div>
</div>
</div>
</div>
<footer>
<div class="grad-bottom"></div>
<div class="footer">
<div class="container">
<span class="pull-right">
<a href="#top">Back to top</a>
</span>
Copyright © 2020 The Apache Software Foundation, Licensed under the <a href='http://www.apache.org/licenses/LICENSE-2.0' target='_blank'>Apache License, Version 2.0</a><br> <small>Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation. <br>All other marks mentioned may be trademarks or registered trademarks of their respective owners.</small>
</div>
</div>
</footer>
</div>
<script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.vendor.js"></script>
<script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.js"></script>
<script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/main.js"></script>
</body>
</html>