int []c=new int[28]; for (int b = 0; b < diff.Count; b++) { using (XmlTextReader reader = new XmlTextReader(filename)) { bool isInside = false; double x1 = 0; double y1 = 0; double z1 = 0; double x2 = 0; double y2 = 0; double z2 = 0; while (reader.Read()) { reader.WhitespaceHandling = WhitespaceHandling.None; if (!isInside && reader.LocalName == "Child" && reader.GetAttribute("id") == diff[b].Key && reader.GetAttribute("type") == lstGivenString[0]) { isInside = true; c[0]++; } else if (!isInside && reader.LocalName == "Child" && reader.GetAttribute("id") == diff[b].Key && reader.GetAttribute("type") == lstGivenString[1]) { isInside = true; c[1]++; } else if (!isInside && reader.LocalName == "Child" && reader.GetAttribute("id") == diff[b].Key && reader.GetAttribute("type") == lstGivenString[2]) { isInside = true; c[2]++; } } } }
isInside = true;
break;
!isInside
while
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)