# FarPoint.Web.Spread.Model.Serializer.GetObjectXml

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_Model_Serializer_GetObjectXml_" data-uid="FarPoint.Web.Spread.Model.Serializer.GetObjectXml*">GetObjectXml Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_Model_Serializer_GetObjectXml_" data-uid="FarPoint.Web.Spread.Model.Serializer.GetObjectXml*"></a>
<h4 id="FarPoint_Web_Spread_Model_Serializer_GetObjectXml_FarPoint_Web_Spread_Model_ISerializeSupport_System_String_" data-uid="FarPoint.Web.Spread.Model.Serializer.GetObjectXml(FarPoint.Web.Spread.Model.ISerializeSupport,System.String)">GetObjectXml(ISerializeSupport, string)</h4>
<div class="markdown level1 summary"><p>Serializes an object to an 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 string GetObjectXml(ISerializeSupport o, string elementName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetObjectXml(o As ISerializeSupport, elementName As String) 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="FarPoint.Web.Spread.Model.ISerializeSupport.html">ISerializeSupport</a></td>
      <td><span class="parametername">o</span></td>
      <td><p>Object to serialize</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.string">string</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_Model_Serializer_GetObjectXml_" data-uid="FarPoint.Web.Spread.Model.Serializer.GetObjectXml*"></a>
<h4 id="FarPoint_Web_Spread_Model_Serializer_GetObjectXml_FarPoint_Web_Spread_Model_ISerializeSupport_System_String_System_Reflection_Assembly_" data-uid="FarPoint.Web.Spread.Model.Serializer.GetObjectXml(FarPoint.Web.Spread.Model.ISerializeSupport,System.String,System.Reflection.Assembly)">GetObjectXml(ISerializeSupport, string, Assembly)</h4>
<div class="markdown level1 summary"><p>Serializes an object to an 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 string GetObjectXml(ISerializeSupport o, string elementName, Assembly callingAssembly)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetObjectXml(o As ISerializeSupport, elementName As String, callingAssembly As Assembly) 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="FarPoint.Web.Spread.Model.ISerializeSupport.html">ISerializeSupport</a></td>
      <td><span class="parametername">o</span></td>
      <td><p>Object to serialize</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>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.reflection.assembly">Assembly</a></td>
      <td><span class="parametername">callingAssembly</span></td>
      <td><p>Calling assembly</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.string">string</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_Model_Serializer_GetObjectXml_" data-uid="FarPoint.Web.Spread.Model.Serializer.GetObjectXml*"></a>
<h4 id="FarPoint_Web_Spread_Model_Serializer_GetObjectXml_FarPoint_Web_Spread_Model_ISerializeSupport2_System_String_System_Reflection_Assembly_System_Boolean_" data-uid="FarPoint.Web.Spread.Model.Serializer.GetObjectXml(FarPoint.Web.Spread.Model.ISerializeSupport2,System.String,System.Reflection.Assembly,System.Boolean)">GetObjectXml(ISerializeSupport2, string, Assembly, bool)</h4>
<div class="markdown level1 summary"><p>Serializes an object to an 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 string GetObjectXml(ISerializeSupport2 o, string elementName, Assembly callingAssembly, bool saveType)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetObjectXml(o As ISerializeSupport2, elementName As String, callingAssembly As Assembly, saveType As Boolean) 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="FarPoint.Web.Spread.Model.ISerializeSupport2.html">ISerializeSupport2</a></td>
      <td><span class="parametername">o</span></td>
      <td><p>Object to serialize</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>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.reflection.assembly">Assembly</a></td>
      <td><span class="parametername">callingAssembly</span></td>
      <td><p>Calling assembly</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">saveType</span></td>
      <td><p>Whether to save the data type</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.string">string</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
