XML文件转为DataSet
private static DataSet XMLToDataset() { string strDBXMLFile = @"F:\DB\DBTEST.XML"; DataSet dsXML = new DataSet(); dsXML.ReadXml(strDBXMLFile); //某个节点名称的所有节点 DataTable dtOneNote = dsXML.Tables["SMT"]; return dsXML; }
2024-04-10 07:54:47
XML文件转为DataSet
private static DataSet XMLToDataset() { string strDBXMLFile = @"F:\DB\DBTEST.XML"; DataSet dsXML = new DataSet(); dsXML.ReadXml(strDBXMLFile); //某个节点名称的所有节点 DataTable dtOneNote = dsXML.Tables["SMT"]; return dsXML; }