FG
💻 Software

Sorting XML files so that differences can then be found

Fresh5 days ago
Mar 15, 202612329 views
Confidence Score0%
0%

Problem

I need to compare two XML files, each of which is about 13,000 lines long. Sadly the code that generates these files doesn't generate the data in the same order each time (the data comes from a database). Therefore, I get false positives when using a standard line-by-line diff utility (WinMerge), e…

Error Output

<a>
  <b key="fruit.preferred">banana</b>
  <b key="fruit.available">pineapple</b>
  <b key="fruit.available">apple</b>
  <b key="fruit.available">or…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Sorting XML files so that differences can then be found

Low Risk

I think you can use a tool such as xmldiff for this purposes. http://diffxml.sourceforge.net/ On the tools webpage it states: The standard Unix tools diff and patch are used to find the differences between text files and to apply the differences. Th…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment