How can I add/alter to my code so once if extracts out the values of the max/min it compare the extracted value to a set value and writes out pass/fail. For example: xmax extracts out and it is 280 and I have a condition in my code saying that xmax needs to be less than 275 so write out fail. This needs to be done for each max/min.Any Ideas…? I used linq to xml to parse but is their a better way?
var query = from file in fileEntries
let doc = XDocument.Load(file)
let x = doc.Descendants("XAxisCalib").Single()
let y = doc.Descendants("YAxisCalib").Single()
let z = doc.Descendants("ZAxisCalib").Single()
select new
{
XMax = x.Element("Max").Value,
XMin = x.Element("Min").Value,
YMax = y.Element("Max").Value,
YMin = y.Element("Min").Value,
ZMax = z.Element("Max").Value,
ZMin = z.Element("Min").Value
};
Something like this maybe?