# C1.TextParser.HtmlExtractor.Load

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_TextParser_HtmlExtractor_Load_" data-uid="C1.TextParser.HtmlExtractor.Load*">Load Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_TextParser_HtmlExtractor_Load_" data-uid="C1.TextParser.HtmlExtractor.Load*"></a>
<h4 id="C1_TextParser_HtmlExtractor_Load_System_IO_Stream_" data-uid="C1.TextParser.HtmlExtractor.Load(System.IO.Stream)">Load(Stream)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static HtmlExtractor Load(Stream xmlTemplate)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Load(xmlTemplate As Stream) As HtmlExtractor</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
      <td><span class="parametername">xmlTemplate</span></td>
      <td><p>A stream containing the template specification expressed in xml to be used by the returned extractor.
It contains the specification about all the placeholders regarding to the original html content also specified in the xml.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.TextParser.HtmlExtractor.html">HtmlExtractor</a></td>
      <td><p>The generated HtmlExtractor instance.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentnullexception">ArgumentNullException</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
