# Xml Data Source

This topic provides ActiveReports samples demonstrating data binding with XML data provider in a Page/RDLX report.

## Content

The XML Data Source sample demonstrates how to use the XML data provider for supplying data to the report.
![Report bound to XML Data Source](https://cdn.mescius.io/document-site-files/images/b298aea2-8cb8-4a0f-be88-4f54aa263ebd/images/xmldatasourcesample.png)

### Sample Location

**Visual Basic.NET**
[https://github.com/activereports/Samples20/tree/main/DataBinding/PageAndRDLX/XmlDataSource/VB.NET](https://github.com/activereports/Samples20/tree/main/DataBinding/PageAndRDLX/XmlDataSource/VB.NET)
**C#**
[https://github.com/activereports/Samples20/tree/main/DataBinding/PageAndRDLX/XmlDataSource/C#](https://github.com/activereports/Samples20/tree/main/DataBinding/PageAndRDLX/XmlDataSource/C%23)
**Run-Time Features**
When you run this sample, you will see the MainForm appear. The MainForm contains the ActiveReports **Viewer** that displays a report with data from the xml data provider.
**Project Details**
BandedListXML.rdlx
This is the main report that gets displayed in the Viewer at run time. It uses the BandedList and Textbox controls, and the [Subreport](/activereportsnet/docs/v20.1/report-authors/report-controls/report-controls-section-report/subreport-section) control inside the [BandedList](/activereportsnet/docs/v20.1/report-authors/report-controls/report-controls-page-rdl-report/bandedlist) data region to display data.
The BandedList data region uses two groups to group the report data by the fields **City** and **Country**.
The Subreport control, placed in the GroupFooter section of the BandedList, displays the **CountrySales** report.
CountrySales.rdlx
This is the report that gets displayed by the Subreport control of the BandedListXML report.
It uses the [Chart](/activereportsnet/docs/v20.1/report-authors/report-controls/report-controls-page-rdl-report/chart-page-rdl) data region to display data. The **Chart Type** property is set to **Doughnut (Pie Exploded Doughnut)**, which shows the analysis of companies sales amount for different countries.