public bool CompareFile(string TargetFile) { MyArxmlDoc TargetArxmlDoc = new MyArxmlDoc(TargetFile); if (TopElementNode.CompareNode(TargetArxmlDoc.TopElementNode)) { return true; } else { return false; } }
static void Main(string[] args) { //ArxmlNodes = new List<ArxmlNode>(); //XmlDocument MyXml = new XmlDocument(); //MyXml.Load(@"D:\test1.xml"); //XmlNode A = MyXml.DocumentElement; //NodeExplore(A); MyArxmlDoc Mydoc = new MyArxmlDoc(@"D:\test1.xml"); DiffLevel Result = Mydoc.CompareFile(@"D:\test2.xml"); Console.WriteLine(Result.ToString()); Console.ReadLine(); }