DataSet接收XML数据并按条件搜索

DataRow etrow = data.Tables[0].Rows[0];

XmlDataDocument xmlDoc 
= new XmlDataDocument();
DataSet myDataSet 
= xmlDoc.DataSet;
try
{
    xmlDoc.DataSet.ReadXml(
"ee.xml");
}

catch{return data;}
DataRow[] row 
= xmlDoc.DataSet.Tables[0].Select("ID=3");            
if(row.Length==0)
    
return data;
原文地址:https://www.cnblogs.com/timy/p/676181.html