adding XML comparison method

merged with json comparison mode changes