# C1.Schedule.BasePersistableObject.FromXml

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Schedule_BasePersistableObject_FromXml_" data-uid="C1.Schedule.BasePersistableObject.FromXml*">FromXml Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Schedule_BasePersistableObject_FromXml_" data-uid="C1.Schedule.BasePersistableObject.FromXml*"></a>
<h4 id="C1_Schedule_BasePersistableObject_FromXml_System_Xml_XmlNode_" data-uid="C1.Schedule.BasePersistableObject.FromXml(System.Xml.XmlNode)">FromXml(XmlNode)</h4>
<div class="markdown level1 summary"><p>Loads an object from the specified <span class="xref">System.Xml.XmlNode</span>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual bool FromXml(XmlNode node)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function FromXml(node As XmlNode) As Boolean</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>An <span class="xref">System.Xml.XmlNode</span> which contains the object data.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>Returns true if object has been changed.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_BasePersistableObject_FromXml_" data-uid="C1.Schedule.BasePersistableObject.FromXml*"></a>
<h4 id="C1_Schedule_BasePersistableObject_FromXml_System_Xml_XmlReader_" data-uid="C1.Schedule.BasePersistableObject.FromXml(System.Xml.XmlReader)">FromXml(XmlReader)</h4>
<div class="markdown level1 summary"><p>Loads an object from the specified <span class="xref">System.Xml.XmlReader</span>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual bool FromXml(XmlReader reader)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function FromXml(reader As XmlReader) As Boolean</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">reader</span></td>
      <td><p>An <span class="xref">System.Xml.XmlReader</span> which contains the object data.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>Returns true if object has been changed.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_BasePersistableObject_FromXml_" data-uid="C1.Schedule.BasePersistableObject.FromXml*"></a>
<h4 id="C1_Schedule_BasePersistableObject_FromXml_System_IO_Stream_" data-uid="C1.Schedule.BasePersistableObject.FromXml(System.IO.Stream)">FromXml(Stream)</h4>
<div class="markdown level1 summary"><p>Loads an object from the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool FromXml(Stream stream)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FromXml(stream As Stream) As Boolean</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>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a> that contains the object data.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>Returns true if object has been changed.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
