loading xml in c# but incomplete

Viewed 32

As in my last post I now managed to load the xml file in c# with the following code. But it is not loaded correctly as you can see in the picture below. Thank you in advance! :)

code for xml loading in c#

private void button1_Click(object sender, EventArgs e)
{
    try
    {
        XmlReader xmlFile;
        xmlFile = XmlReader.Create(@"test.xml", new XmlReaderSettings());
        DataSet ds = new DataSet();
        ds.ReadXml(xmlFile);
        dataGridView1.DataSource = ds.Tables[0];
    }
    catch (Exception ex)
    {
        MessageBox.Show(ex.ToString());
    }
} 
0 Answers
Related