XML Diff

I guess this is probably a feature request and is more than likely too late for v9, however, I'll propose it anyway

Sometimes I get xml files that are one long string, which makes diff'ing them impossible until you reformat.
Other cases are when the structural order is different but the content is the same.

See the example here for what I am talking about
http://xmlunit.sourceforge.net/

<stuff-doc>
<stuff>
Stuff Stuff Stuff
</stuff>
<more-stuff>
Some More Stuff
</more-stuff>
</stuff-doc>
equals
<stuff-doc>
<more-stuff>
Some More Stuff</more-stuff>
<stuff>Stuff Stuff Stuff</stuff>
</stuff-doc>




Who else thinks XML aware diffs would be an excellent feature for IDEA?

5 comments
Comment actions Permalink

Actually, those two documents are not the same - order is significant in XML files. But yes, XML-aware diffing would be excellent. It's surprisingly hard to get right, though.

Cheers,
Colin

0
Comment actions Permalink

In case you are using the XML Diff for comparisons in testing, you might are not aware XMLUNIT makes unit testing XML fairly painless.
It does more that a visual comparison can do since with a little wrapper code you can exclude certain elements that dynamically vary such as Date/times/serial numbers...
The ability to push a button and run a JUnit test and not have to compare visually is comforting.

-Rob

0
Comment actions Permalink

It didn't make it in for v9.
Any chance of it slipping in for v10?
http://youtrack.jetbrains.net/issue/IDEA-59051

0
Comment actions Permalink

Hello opticyclic,

No, there's no chance at this point to include it in IntelliJ IDEA 10.

It didn't make it in for v9.
Any chance of it slipping in for v10?
http://youtrack.jetbrains.net/issue/IDEA-59051


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Its still not here in 13.1 :(
I have to resort to a an old MSDN article that I compiled
https://bitbucket.org/opticyclic/xmldiffpatchgui

It outputs an html file so it isn't very nice to work with.

0

Please sign in to leave a comment.