Compare XML equivalence
Posted: Wed Jan 25, 2017 12:24 pm
There's some discussion going on and I am tasked to prove beyond doubt that two files are 'XML equivalent'. One of them has all namespace declarations on the root element and a global namespace. The other has the namespaces distributed and all elements are prefixed with a namespace (the global namespace is suddenly named 'tag0').
I am pretty sure the xml files are equivalent, but sadly Oxygen compare seems to be unable to ignore the location of namespace declarations.
Is there another way to do this? I am currently using 'Oxygen editor 16.1'. Will upgrading help in any way?
Example
File A:
File B:
These files are not equivalent according to Oxygen compare, even if I use the 'XML Accurate' setting in the Oxygen compare tool.
I am pretty sure the xml files are equivalent, but sadly Oxygen compare seems to be unable to ignore the location of namespace declarations.
Is there another way to do this? I am currently using 'Oxygen editor 16.1'. Will upgrading help in any way?
Example
File A:
Code: Select all
<Response-APD xmlns="http://www.kadaster.nl/schemas/requests-apd/v200909" xmlns:ns2="http://www.kadaster.nl/schemas/requests-selections/v200909">
<response>
<request>
<ns2:APD>
File B:
Code: Select all
<tag0:Response-APD xmlns:tag0="http://www.kadaster.nl/schemas/requests-apd/v200909">
<tag0:antwoord>
<tag0:vraag>
<ns2:APD xmlns:ns2="http://www.kadaster.nl/schemas/requests-selections/v200909">