1.xml转换成DataSet
string strXML = "<DataRow><Row id=\"2\" name=\"name2\"/><Row id=\"1\" name=\"name1\"/>/DataRow>";
DataSet ds = new DataSet();
ds.ReadXml(new System.IO.StringReader(strXML));//就是这一句 呵呵
2.DataSet转换成XML
DataSet ds = new DataSet();
string strXML=ds.GetXml();
相关文章:
-
2022-12-23
-
2022-12-23
-
2021-10-18
-
2022-12-23
-
2021-12-18
猜你喜欢
-
2022-12-23
-
2021-11-22
-
2022-02-09
-
2022-12-23
-
2022-12-23
-
2022-12-23
相关资源
-
下载
2023-04-03
-
下载
2023-02-03
-
下载
2023-04-02