Exemple #1
0
        /// <summary>
        /// XML PARSE
        /// </summary>
        public static void XMLParse()
        {
            string path    = Environment.CurrentDirectory + "/system-new.config";
            string oldPath = Environment.CurrentDirectory + "/system-old.config";

            Console.WriteLine(path);
            Console.WriteLine(oldPath);

            if (!File.Exists(path))
            {
                Console.WriteLine("新文件不存在");
            }

            if (!File.Exists(oldPath))
            {
                Console.WriteLine("旧文件不存在");
            }

            if (File.Exists(oldPath) && File.Exists(path))
            {
                XMLHelper.CompareXML(path, oldPath);
            }
        }