# C1.Win.TreeView.C1TreeView.ReadXml

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_TreeView_C1TreeView_ReadXml_" data-uid="C1.Win.TreeView.C1TreeView.ReadXml*">ReadXml Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_TreeView_C1TreeView_ReadXml_" data-uid="C1.Win.TreeView.C1TreeView.ReadXml*"></a>
<h4 id="C1_Win_TreeView_C1TreeView_ReadXml_System_String_" data-uid="C1.Win.TreeView.C1TreeView.ReadXml(System.String)">ReadXml(string)</h4>
<div class="markdown level1 summary"><p>Loads the treview from an Xml document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ReadXml(string fileName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ReadXml(fileName As String)</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.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>Name of the file to load, including the path.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_TreeView_C1TreeView_ReadXml_" data-uid="C1.Win.TreeView.C1TreeView.ReadXml*"></a>
<h4 id="C1_Win_TreeView_C1TreeView_ReadXml_System_IO_TextReader_" data-uid="C1.Win.TreeView.C1TreeView.ReadXml(System.IO.TextReader)">ReadXml(TextReader)</h4>
<div class="markdown level1 summary"><p>Loads the treview from an Xml document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ReadXml(TextReader tr)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ReadXml(tr As TextReader)</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.textreader">TextReader</a></td>
      <td><span class="parametername">tr</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.textreader">TextReader</a> object to use for loading the treeview.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_TreeView_C1TreeView_ReadXml_" data-uid="C1.Win.TreeView.C1TreeView.ReadXml*"></a>
<h4 id="C1_Win_TreeView_C1TreeView_ReadXml_System_IO_Stream_" data-uid="C1.Win.TreeView.C1TreeView.ReadXml(System.IO.Stream)">ReadXml(Stream)</h4>
<div class="markdown level1 summary"><p>Loads the treview from an Xml document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ReadXml(Stream stream)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ReadXml(stream As Stream)</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">stream</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a> object to use for loading the treeview.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_TreeView_C1TreeView_ReadXml_" data-uid="C1.Win.TreeView.C1TreeView.ReadXml*"></a>
<h4 id="C1_Win_TreeView_C1TreeView_ReadXml_System_Xml_XmlReader_" data-uid="C1.Win.TreeView.C1TreeView.ReadXml(System.Xml.XmlReader)">ReadXml(XmlReader)</h4>
<div class="markdown level1 summary"><p>Loads the treview from an Xml document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ReadXml(XmlReader xr)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ReadXml(xr As XmlReader)</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><span class="xref">XmlReader</span></td>
      <td><span class="parametername">xr</span></td>
      <td><p><span class="xref">System.Xml.XmlReader</span> object to use for loading the treeview.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_TreeView_C1TreeView_ReadXml_" data-uid="C1.Win.TreeView.C1TreeView.ReadXml*"></a>
<h4 id="C1_Win_TreeView_C1TreeView_ReadXml_System_Xml_XmlDocument_" data-uid="C1.Win.TreeView.C1TreeView.ReadXml(System.Xml.XmlDocument)">ReadXml(XmlDocument)</h4>
<div class="markdown level1 summary"><p>Loads the treview from an Xml document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ReadXml(XmlDocument doc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ReadXml(doc As XmlDocument)</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><span class="xref">XmlDocument</span></td>
      <td><span class="parametername">doc</span></td>
      <td><p><span class="xref">System.Xml.XmlDocument</span> object to use for loading the treeview.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_TreeView_C1TreeView_ReadXml_" data-uid="C1.Win.TreeView.C1TreeView.ReadXml*"></a>
<h4 id="C1_Win_TreeView_C1TreeView_ReadXml_System_Xml_XmlNode_" data-uid="C1.Win.TreeView.C1TreeView.ReadXml(System.Xml.XmlNode)">ReadXml(XmlNode)</h4>
<div class="markdown level1 summary"><p>Loads the treview from an Xml document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ReadXml(XmlNode node)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ReadXml(node As XmlNode)</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><span class="xref">XmlNode</span></td>
      <td><span class="parametername">node</span></td>
      <td><p><span class="xref">System.Xml.XmlNode</span> object to use for loading the treeview.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
