}
public static DataTable ReturnTbByReradxml(string fileName,string NodeName)
{
try
{
DataSet ds = new DataSet();
DataTable dt = new DataTable();
if (File.Exists(fileName))
{
ds.ReadXml(fileName);
if (ds == null)
{
return null;
}
else
{
dt = ds.Tables[NodeName];
return dt.Copy();
}
}
else
{
return null;
}
}
catch
{
return null;
}
}
basePath------------文件存储路劲
isscreenshot, screenshottime, screenshotsavepath ,fileName,NodeName-----------------------节点名
原文地址:http://blog.csdn.net/u014180504/article/details/44835077