Hi,
I have an xml file that I want to load into a dataset in Visual Studio 2008 that looks like -
If I simply create a dataset in code and call the ReadXML() method, it works as planned and the data is loaded. However, I want to design the dataset visually, creating a .xsd file in VS. I do this and add a DataTable called Employee and three columns the same names as above. If I do this then call the ReadXML() method on this dataset, there is never any data loaded. What am I doing wrong?
I have an xml file that I want to load into a dataset in Visual Studio 2008 that looks like -
HTML:
<MyData>
<Employee>
<Name></Name>
<DOB></DOB>
<Address></Address>
</Employee>
</MyData>
If I simply create a dataset in code and call the ReadXML() method, it works as planned and the data is loaded. However, I want to design the dataset visually, creating a .xsd file in VS. I do this and add a DataTable called Employee and three columns the same names as above. If I do this then call the ReadXML() method on this dataset, there is never any data loaded. What am I doing wrong?