# C1.TextParser.HtmlExtractor

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_TextParser_HtmlExtractor" data-uid="C1.TextParser.HtmlExtractor" class="text-break">HtmlExtractor Class
</h1>
  <div class="markdown level0 summary"><p>Extractor that allows to retrieve specific text content from an html source</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">HtmlExtractor</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_HtmlExtractor_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class HtmlExtractor : IExtractor</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class HtmlExtractor
    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_HtmlExtractor__ctor_System_IO_Stream_" data-uid="C1.TextParser.HtmlExtractor.#ctor(System.IO.Stream)">
          <a class="xref" href="C1.TextParser.HtmlExtractor.-ctor.html#C1_TextParser_HtmlExtractor__ctor_System_IO_Stream_">HtmlExtractor(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Construct a new HtmlExtractor instance</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_HtmlExtractor_AddPlaceHolder_System_String_System_String_" data-uid="C1.TextParser.HtmlExtractor.AddPlaceHolder(System.String,System.String)">
          <a class="xref" href="C1.TextParser.HtmlExtractor.AddPlaceHolder.html#C1_TextParser_HtmlExtractor_AddPlaceHolder_System_String_System_String_">AddPlaceHolder(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Add a new fixed place holder to the template specification used by this HtmlExtractor.</p>
</td>
      </tr>
      <tr>
        <td id="C1_TextParser_HtmlExtractor_AddPlaceHolder_System_String_System_String_System_Int32_System_Int32_" data-uid="C1.TextParser.HtmlExtractor.AddPlaceHolder(System.String,System.String,System.Int32,System.Int32)">
          <a class="xref" href="C1.TextParser.HtmlExtractor.AddPlaceHolder.html#C1_TextParser_HtmlExtractor_AddPlaceHolder_System_String_System_String_System_Int32_System_Int32_">AddPlaceHolder(string, string, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Add a new fixed place holder to the template specification used by this HtmlExtractor.</p>
</td>
      </tr>
      <tr>
        <td id="C1_TextParser_HtmlExtractor_AddPlaceHolder_System_String_System_String_System_String_" data-uid="C1.TextParser.HtmlExtractor.AddPlaceHolder(System.String,System.String,System.String)">
          <a class="xref" href="C1.TextParser.HtmlExtractor.AddPlaceHolder.html#C1_TextParser_HtmlExtractor_AddPlaceHolder_System_String_System_String_System_String_">AddPlaceHolder(string, string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Add a new repeated place holder to the template specification used by this HtmlExtractor/&gt;.</p>
</td>
      </tr>
      <tr>
        <td id="C1_TextParser_HtmlExtractor_AddPlaceHolder_System_String_System_String_System_String_System_Int32_System_Int32_" data-uid="C1.TextParser.HtmlExtractor.AddPlaceHolder(System.String,System.String,System.String,System.Int32,System.Int32)">
          <a class="xref" href="C1.TextParser.HtmlExtractor.AddPlaceHolder.html#C1_TextParser_HtmlExtractor_AddPlaceHolder_System_String_System_String_System_String_System_Int32_System_Int32_">AddPlaceHolder(string, string, string, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Add a new repeated place holder to the template specification used by this HtmlExtractor.</p>
</td>
      </tr>
      <tr>
        <td id="C1_TextParser_HtmlExtractor_AddPlaceHolder_System_String_System_String_System_String_System_String_" data-uid="C1.TextParser.HtmlExtractor.AddPlaceHolder(System.String,System.String,System.String,System.String)">
          <a class="xref" href="C1.TextParser.HtmlExtractor.AddPlaceHolder.html#C1_TextParser_HtmlExtractor_AddPlaceHolder_System_String_System_String_System_String_System_String_">AddPlaceHolder(string, string, string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Add a new repeated place holder to the template specification used by this HtmlExtractor.</p>
</td>
      </tr>
      <tr>
        <td id="C1_TextParser_HtmlExtractor_AddPlaceHolder_System_String_System_String_System_String_System_String_System_Int32_System_Int32_" data-uid="C1.TextParser.HtmlExtractor.AddPlaceHolder(System.String,System.String,System.String,System.String,System.Int32,System.Int32)">
          <a class="xref" href="C1.TextParser.HtmlExtractor.AddPlaceHolder.html#C1_TextParser_HtmlExtractor_AddPlaceHolder_System_String_System_String_System_String_System_String_System_Int32_System_Int32_">AddPlaceHolder(string, string, string, string, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Add a new repeated place holder to the template specification used by this HtmlExtractor.</p>
</td>
      </tr>
      <tr>
        <td id="C1_TextParser_HtmlExtractor_Export_System_IO_Stream_" data-uid="C1.TextParser.HtmlExtractor.Export(System.IO.Stream)">
          <a class="xref" href="C1.TextParser.HtmlExtractor.Export.html#C1_TextParser_HtmlExtractor_Export_System_IO_Stream_">Export(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Serialize this HtmlExtractor to a Stream. The serialization is expressed in xml
and contains all the specification about the template used by this html extractor.</p>
</td>
      </tr>
      <tr>
        <td id="C1_TextParser_HtmlExtractor_Extract_System_IO_Stream_System_Text_Encoding_" data-uid="C1.TextParser.HtmlExtractor.Extract(System.IO.Stream,System.Text.Encoding)">
          <a class="xref" href="C1.TextParser.HtmlExtractor.Extract.html#C1_TextParser_HtmlExtractor_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>
      <tr>
        <td id="C1_TextParser_HtmlExtractor_Load_System_IO_Stream_" data-uid="C1.TextParser.HtmlExtractor.Load(System.IO.Stream)">
          <a class="xref" href="C1.TextParser.HtmlExtractor.Load.html#C1_TextParser_HtmlExtractor_Load_System_IO_Stream_">Load(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Construct a new HtmlExtractor instance and generate all the template specification
to be used by the returned extractor acording to <code class="paramref">xmlTemplate</code></p>
</td>
      </tr>
    </tbody>
  </table>

</div>
