Read XML file as DataSet

后端 未结 2 1641
不知归路
不知归路 2020-12-30 08:14

I am inexperienced with parsing XML files, and I am saving line graph data to an xml file, so I did a little bit of research. According to this article, out of all the ways

2条回答
  •  盖世英雄少女心
    2020-12-30 09:00

    Other simple method is using "ReadXml" inbuilt method.

    string filePath = "D:\\Self Practice\\Sol1\\Sol1\\Information.xml";
    DataSet ds = new DataSet();
    ds.ReadXml(filePath);
    

    Note: XML file should be orderly manner.

    Reference

提交回复
热议问题