# GrapeCity.ActiveReports.Data.XMLDataSource

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_ActiveReports_Data_XMLDataSource" data-uid="GrapeCity.ActiveReports.Data.XMLDataSource" class="text-break">XMLDataSource Class
</h1>
  <div class="markdown level0 summary"><p>Represents a section report data source based on an XML document and an XPath pattern to select the XML nodes used as records in the data source.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">XMLDataSource</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Data.html">GrapeCity.ActiveReports.Data</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.dll</h6>
  <h5 id="GrapeCity_ActiveReports_Data_XMLDataSource_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof())]
public sealed class XMLDataSource</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_XMLDataSource__ctor" data-uid="GrapeCity.ActiveReports.Data.XMLDataSource.#ctor">
          <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.-ctor.html#GrapeCity_ActiveReports_Data_XMLDataSource__ctor">XMLDataSource()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.html">XMLDataSource</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_XMLDataSource__ctor_System_String_System_String_" data-uid="GrapeCity.ActiveReports.Data.XMLDataSource.#ctor(System.String,System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.-ctor.html#GrapeCity_ActiveReports_Data_XMLDataSource__ctor_System_String_System_String_">XMLDataSource(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.html">XMLDataSource</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_XMLDataSource_BOF" data-uid="GrapeCity.ActiveReports.Data.XMLDataSource.BOF">
          <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.BOF.html#GrapeCity_ActiveReports_Data_XMLDataSource_BOF">BOF</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the CurrentPosition is at the first node in the NodeList.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_XMLDataSource_Count" data-uid="GrapeCity.ActiveReports.Data.XMLDataSource.Count">
          <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.Count.html#GrapeCity_ActiveReports_Data_XMLDataSource_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of nodes (records) in the node list.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_XMLDataSource_CredentialsMode" data-uid="GrapeCity.ActiveReports.Data.XMLDataSource.CredentialsMode">
          <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.CredentialsMode.html#GrapeCity_ActiveReports_Data_XMLDataSource_CredentialsMode">CredentialsMode</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_XMLDataSource_CurrentPosition" data-uid="GrapeCity.ActiveReports.Data.XMLDataSource.CurrentPosition">
          <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.CurrentPosition.html#GrapeCity_ActiveReports_Data_XMLDataSource_CurrentPosition">CurrentPosition</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the current node in the NodeList.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_XMLDataSource_Document" data-uid="GrapeCity.ActiveReports.Data.XMLDataSource.Document">
          <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.Document.html#GrapeCity_ActiveReports_Data_XMLDataSource_Document">Document</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a reference to the loaded XmlDocument that is used as the data source.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_XMLDataSource_EOF" data-uid="GrapeCity.ActiveReports.Data.XMLDataSource.EOF">
          <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.EOF.html#GrapeCity_ActiveReports_Data_XMLDataSource_EOF">EOF</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the CurrentPosition is at the end of the NodeList.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_XMLDataSource_FileURL" data-uid="GrapeCity.ActiveReports.Data.XMLDataSource.FileURL">
          <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.FileURL.html#GrapeCity_ActiveReports_Data_XMLDataSource_FileURL">FileURL</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the file name or url used to retrieve the XML document to be used as a data source.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_XMLDataSource_NodeList" data-uid="GrapeCity.ActiveReports.Data.XMLDataSource.NodeList">
          <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.NodeList.html#GrapeCity_ActiveReports_Data_XMLDataSource_NodeList">NodeList</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a reference to the XmlNodeList object that is the result of applying the XPath pattern provided in the RecordsetPattern property.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_XMLDataSource_RecordsetPattern" data-uid="GrapeCity.ActiveReports.Data.XMLDataSource.RecordsetPattern">
          <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.RecordsetPattern.html#GrapeCity_ActiveReports_Data_XMLDataSource_RecordsetPattern">RecordsetPattern</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a valid XPath pattern used to select the data source nodes to be printed in the report.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_XMLDataSource_ResourceLocator" data-uid="GrapeCity.ActiveReports.Data.XMLDataSource.ResourceLocator">
          <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.ResourceLocator.html#GrapeCity_ActiveReports_Data_XMLDataSource_ResourceLocator">ResourceLocator</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the function that returns resource stream for a given name.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_XMLDataSource_ValidateOnParse" data-uid="GrapeCity.ActiveReports.Data.XMLDataSource.ValidateOnParse">
          <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.ValidateOnParse.html#GrapeCity_ActiveReports_Data_XMLDataSource_ValidateOnParse">ValidateOnParse</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the retrieved XmlDocument should be validated while parsing.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_XMLDataSource_Field_System_String_System_Boolean_" data-uid="GrapeCity.ActiveReports.Data.XMLDataSource.Field(System.String,System.Boolean)">
          <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.Field.html#GrapeCity_ActiveReports_Data_XMLDataSource_Field_System_String_System_Boolean_">Field(string, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the XML node or nodelist using the specified XPath pattern relative to the current node.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_XMLDataSource_Field_System_String_System_Boolean_System_Boolean_" data-uid="GrapeCity.ActiveReports.Data.XMLDataSource.Field(System.String,System.Boolean,System.Boolean)">
          <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.Field.html#GrapeCity_ActiveReports_Data_XMLDataSource_Field_System_String_System_Boolean_System_Boolean_">Field(string, bool, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the XML node or nodelist using the specified XPath pattern relative to the current node. The isOutputformatNull flag specifies whether to use the text of the current node.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_XMLDataSource_LoadXML_System_String_" data-uid="GrapeCity.ActiveReports.Data.XMLDataSource.LoadXML(System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.LoadXML.html#GrapeCity_ActiveReports_Data_XMLDataSource_LoadXML_System_String_">LoadXML(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads an XML fragment from a string.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_XMLDataSource_MoveFirst" data-uid="GrapeCity.ActiveReports.Data.XMLDataSource.MoveFirst">
          <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.MoveFirst.html#GrapeCity_ActiveReports_Data_XMLDataSource_MoveFirst">MoveFirst()</a>
        </td>
        <td class="markdown level1 summary"><p>Moves the current position to the first node in the NodeList.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_XMLDataSource_MoveNext" data-uid="GrapeCity.ActiveReports.Data.XMLDataSource.MoveNext">
          <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.MoveNext.html#GrapeCity_ActiveReports_Data_XMLDataSource_MoveNext">MoveNext()</a>
        </td>
        <td class="markdown level1 summary"><p>Moves the CurrentPosition to the next node in the NodeList.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_XMLDataSource_Changed" data-uid="GrapeCity.ActiveReports.Data.XMLDataSource.Changed">
          <a class="xref" href="GrapeCity.ActiveReports.Data.XMLDataSource.Changed.html">Changed</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when data source fields is changed.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.ApplyDefaults.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_ApplyDefaults__1___0_">ObjectExtensions.ApplyDefaults&lt;TObject&gt;(TObject)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.SetValue.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_SetValue__1___0_System_ComponentModel_PropertyDescriptor_System_String_">ObjectExtensions.SetValue&lt;TObject&gt;(TObject, PropertyDescriptor, string)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.ToNameValueCollection.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_ToNameValueCollection_System_Object_">ObjectExtensions.ToNameValueCollection(object)</a>
  </div>

</div>
