Menu

#123 XML Diff enhancement

open
nobody
5
2014-08-28
2011-09-29
Anonymous
No

compare XML file miss match the whole sections. For example <company name="PAN" am=""> section to <company name="AM" exp=""> section.</company></company>

I have to edit the files so it could match section by section and find the "item" or subsection were different!

Have any better way to diff XML files?

Discussion

  • tav

    tav - 2011-10-04

    There is no necessity to edit files itself, because you can always use manual diff alignment to match XML sections manually (click on proper line from first file, then press Ctrl+Y, and click on corresponding line from second file, then again press Ctrl+Y).

     
  • Joachim Eibl

    Joachim Eibl - 2011-10-05

    I agree with what t-a-v wrote. Manual alignment is very useful if you don't need it too often.
    Another possibility might be to use the option "Ignore numbers" or more flexible the line-matching preprocessor to mark certain differences as not so important, especially if the way you had to edit your files is consistent and always the same.
    The diff algorithm doesn't know what content should match and each xml-format might require different things.
    If you need more help please attach or send example files.

     
MongoDB Logo MongoDB