[TestMethod]
public void ImportXML()
{
string xmlPath = "E:\\IoTPlatform\\IoTPlatformSolution\\IoTPlatformUnitTest\\xml\\project.xml";
string xmlPath1 = "E:\\IoTPlatform\\IoTPlatformSolution\\IoTPlatformUnitTest\\xml\\project1.xml";
string xmlPath2 = "E:\\IoTPlatform\\IoTPlatformSolution\\IoTPlatformUnitTest\\xml\\projectmode.xml";
FileInfo xmlFile = new FileInfo(xmlPath);
FileInfo xmlFile1 = new FileInfo(xmlPath1);
FileInfo xmlFile2 = new FileInfo(xmlPath2);
DataSet ds = new DataSet();
DataSet ds1 = new DataSet();
DataSet ds2 = new DataSet();
if (xmlFile.Exists && xmlFile1.Exists && xmlFile2.Exists)
{
FileStream fStream = new FileStream(xmlPath, FileMode.Open);
XmlTextReader mtr = new XmlTextReader(fStream);
ds.ReadXmlSchema(mtr);
mtr.Close();
FileStream fStream1 = new FileStream(xmlPath1, FileMode.Open);
XmlTextReader mtr1 = new XmlTextReader(fStream1);
ds1.ReadXml(mtr1);
mtr1.Close();
FileStream fStream2 = new FileStream(xmlPath2, FileMode.Open);
XmlTextReader mtr2 = new XmlTextReader(fStream2);
ds2.ReadXml(mtr2);
mtr2.Close();
}
}
public void ImportXML()
{
string xmlPath = "E:\\IoTPlatform\\IoTPlatformSolution\\IoTPlatformUnitTest\\xml\\project.xml";
string xmlPath1 = "E:\\IoTPlatform\\IoTPlatformSolution\\IoTPlatformUnitTest\\xml\\project1.xml";
string xmlPath2 = "E:\\IoTPlatform\\IoTPlatformSolution\\IoTPlatformUnitTest\\xml\\projectmode.xml";
FileInfo xmlFile = new FileInfo(xmlPath);
FileInfo xmlFile1 = new FileInfo(xmlPath1);
FileInfo xmlFile2 = new FileInfo(xmlPath2);
DataSet ds = new DataSet();
DataSet ds1 = new DataSet();
DataSet ds2 = new DataSet();
if (xmlFile.Exists && xmlFile1.Exists && xmlFile2.Exists)
{
FileStream fStream = new FileStream(xmlPath, FileMode.Open);
XmlTextReader mtr = new XmlTextReader(fStream);
ds.ReadXmlSchema(mtr);
mtr.Close();
FileStream fStream1 = new FileStream(xmlPath1, FileMode.Open);
XmlTextReader mtr1 = new XmlTextReader(fStream1);
ds1.ReadXml(mtr1);
mtr1.Close();
FileStream fStream2 = new FileStream(xmlPath2, FileMode.Open);
XmlTextReader mtr2 = new XmlTextReader(fStream2);
ds2.ReadXml(mtr2);
mtr2.Close();
}
}