# C1.TextParser.TemplateBasedExtractor

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_TextParser_TemplateBasedExtractor" data-uid="C1.TextParser.TemplateBasedExtractor" class="text-break">TemplateBasedExtractor Class
</h1>
  <div class="markdown level0 summary"><p>Extractor that allows to parse custom user data structure formats. The format of the data structures is formally declared using the xml notation.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">TemplateBasedExtractor</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.TextParser.IExtractor.html">IExtractor</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.TextParser.html">C1.TextParser</a></h6>
  <h6><strong>Assembly</strong>: C1.TextParser.dll</h6>
  <h5 id="C1_TextParser_TemplateBasedExtractor_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TemplateBasedExtractor : IExtractor</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TemplateBasedExtractor
    Implements IExtractor</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_TextParser_TemplateBasedExtractor__ctor_System_IO_Stream_" data-uid="C1.TextParser.TemplateBasedExtractor.#ctor(System.IO.Stream)">
          <a class="xref" href="C1.TextParser.TemplateBasedExtractor.-ctor.html#C1_TextParser_TemplateBasedExtractor__ctor_System_IO_Stream_">TemplateBasedExtractor(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Create a new instance of TemplateBasedExtractor acording to a template specified in xml.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_TextParser_TemplateBasedExtractor_Extract_System_IO_Stream_System_Text_Encoding_" data-uid="C1.TextParser.TemplateBasedExtractor.Extract(System.IO.Stream,System.Text.Encoding)">
          <a class="xref" href="C1.TextParser.TemplateBasedExtractor.Extract.html#C1_TextParser_TemplateBasedExtractor_Extract_System_IO_Stream_System_Text_Encoding_">Extract(Stream, Encoding)</a>
        </td>
        <td class="markdown level1 summary"><p>Execute the process of extracting from the input text stream</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
