-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add XML support #67
Comments
We already have an issue for XML support but it was always a bit unclear whether generic XML support would be useful. The spec does not really define when two documents are identical (with the exception of attribute reordering) and it is mostly up to application specific logic. If there are actual use cases that can benefit from generic rules (ignoring whitespace at the beginning/end of values or attribute reordering) we can take a look into adding support. |
Duplicate of #18 |
And please also add ignoring spaces before the closing tag . I need to do XSLT comparison which is basically an XML document and some of my tools add such a space like e.g. here: "<Data />". It is valid XML but it really drives me crazy to see that being flagged as a valid diff. |
We just released SemanticDiff 0.10.0 which adds support for XML. It should handle both cases mentioned by @bannmann and @williwusel. Please give it a try and report back if it works for you. |
Looks like it works now for me |
It would be great to have support for XML.
My use case is comparing WSDL files that unfortunately have different attribute ordering (which the XML spec says is irrelevant). In this situation, every other diff tool I know fails, even difftastic (see issue Wilfred/difftastic#758).
SemanticDiff, on the other hand, could easily treat the following files as equal (just like the Python example from the docs):
The text was updated successfully, but these errors were encountered: