# FarPoint.Web.Spread.Model.Serializer.SetObjectXml

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_Model_Serializer_SetObjectXml_" data-uid="FarPoint.Web.Spread.Model.Serializer.SetObjectXml*">SetObjectXml Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_Model_Serializer_SetObjectXml_" data-uid="FarPoint.Web.Spread.Model.Serializer.SetObjectXml*"></a>
<h4 id="FarPoint_Web_Spread_Model_Serializer_SetObjectXml_FarPoint_Web_Spread_Model_ISerializeSupport_System_String_System_String_" data-uid="FarPoint.Web.Spread.Model.Serializer.SetObjectXml(FarPoint.Web.Spread.Model.ISerializeSupport,System.String,System.String)">SetObjectXml(ISerializeSupport, string, string)</h4>
<div class="markdown level1 summary"><p>Deserializes an object saved with the GetObjectXml method using the specified XML string.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static bool SetObjectXml(ISerializeSupport o, string xml, string elementName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function SetObjectXml(o As ISerializeSupport, xml As String, elementName As String) 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="FarPoint.Web.Spread.Model.ISerializeSupport.html">ISerializeSupport</a></td>
      <td><span class="parametername">o</span></td>
      <td><p>Object to deserialize</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">xml</span></td>
      <td><p>XML string returned by GetObjectXml</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">elementName</span></td>
      <td><p>Name of XML element</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></td>
    </tr>
  </tbody>
</table>
</div>
