Hello,We know it can be create a report via xml file.I have an XML file Data.xml, which looks like this: <?xml version="1.0" encoding="utf-8" ?> <Company> <Employees> <Employee Name="Mahesh Chand" Age="30" Phone="6101233333" /> <Employee Name="Rose Garner" Age="56" Phone="2133428778" /> <Employee Name="Amger Jap" Age="22" Phone="9092349800" /> <Employee Name="Mike Gold" Age="35" Phone="9908088823" /> <Employee Name="Renee Flower" Age="19" Phone="4848901003" /> </Employees> </Company>
The codes look like below.Dim ds As DataSet = New DataSet()ds.ReadXml("Data.xml")EmployeeBindingSource.DataSource = dsMe.reportViewer1.RefreshReport()
Now my question is if I only want bind some extracted nodes from a file.How can I bind the xml to the dataset? Because we are unable to use a ReadXml("Data.xml") upon it.For instance,comparing to the entire file.How to bind the following with a dataset?<Employees> <Employee Name="Mahesh Chand" Age="30" Phone="6101233333" /> <Employee Name="Rose Garner" Age="56" Phone="2133428778" /> <Employee Name="Amger Jap" Age="22" Phone="9092349800" /> <Employee Name="Mike Gold" Age="35" Phone="9908088823" /> <Employee Name="Renee Flower" Age="19" Phone="4848901003" /> </Employees>