#!/usr/bin/env ruby require "dynport_tools/differ" require "dynport_tools/xml_file" file_a, file_b = ARGV[0,2] if file_a && File.exists?(file_a) && file_b && File.exists?(file_b) a = DynportTools::XmlFile.new(file_a) b = DynportTools::XmlFile.new(file_b) differ = DynportTools::Differ.new diff = differ.diff(a.nodes_hash, b.nodes_hash) puts differ.diff_to_message_lines(diff) else puts "USAGE: xml_diff " end