This tool allows you to compare XML nodes and visualize the semantic differences.
You can see the user guide to help you to use this XML comparison tool.
This small tool allows to compare two XML data structures, and visualize the diff.
Copy and paste, drag and drop a XML file or directly type in the editors above, and then click on "Compare" button they will be compared if the two XML are valids.
You can also click on "load XML from URL" button to load your XML data from a URL (Must be https).
You can also click on "Browse XML file" button to load your XML data from a local file.
You can also directly compare two XML files by specifying their urls in the GET parameters url1 and url2.
Example: https://extendsclass.com/xml-diff.html?url1=https://extendsclass.com/mock/rest/3b3aea6de65f5bd7576a1079bf9b6ec5/sample1.xml&url2=https://extendsclass.com/mock/rest/3b3aea6de65f5bd7576a1079bf9b6ec5/sample2.xml
Then you can visualize the differences between the two XML documents. It highlights the elements which are different:
You can navigate to next / previous difference:
It can be helpful to compare XML documents, unfortunately it can be difficult to see the differences between large XML documents. This free online tool will allows you to do this easily.
XML diff tool makes a semantic comparison, it compares every attribute–value pairs of objects. It compares each node according to their position in the arrays. It sorts and formats the XML strings in order to find the semantic differences instead of just the text ones.
Note: For mixed-content elements (containing character data and elements), it compares the elements two by two according to their order (instead of by type) in the parent element.
Mixed content exemple:
You can give us your feedback (you can make comments).
Extensible Markup Language (XML) is a markup language that uses human-readable text to transmit data. This format is a W3C Recommendation.
JSON and XML are similar on many specificities:
JSON has advantages over XML: JSON is shorter and it is therefore quicker to read and write.
Despite the progress of using the json format, the xml format is still widely used.
Comments
R-2019-07-04 16:05
Cyril (admin)-2019-07-21 19:33
Joanna-2019-11-13 22:17
Cyril-2019-11-14 19:31
Cyril (admin)-2019-12-07 07:42
Kristjan-2019-12-19 12:47
Cyril (admin)-2019-12-19 16:54
Martin-2020-01-21 10:59
Cyril (admin)-2020-01-22 21:05
Tuxpilot-2020-04-05 20:52
It appears that tag names and the first attribute name get smashed together in the orange and yellow sections.
Attila-2020-04-09 10:05
Cyril (admin)-2020-04-09 14:53
Ray-2020-04-13 21:36
Cyril (Admin)-2020-04-13 21:47
Gowtham-2020-04-21 10:22
Cyril (Admin)-2020-04-22 14:31
It's not for sale, it's free :)
shri-2020-06-08 13:42
shri-2020-06-08 13:42
Lambo-2020-08-17 08:05
just little bug: I compared two xml files and result was perfect (similar xml - same nodes but in different order), then I turn off my pc. Next day I restored my browser, this page was loaded, so I input two xml files again (same files as day before). This time comparing not working, files was evalueated as different (with red lines). There is probably some problem with reloading of page.
Great page though.
Have a nice day.
Rob-2020-08-18 18:59
Tiago-2020-09-14 22:41
I need to develop exatly that on my system, what language did you use?
Any tips on what I can research to develop something like this?
Chen-2020-10-31 07:53
The following examples, could compares them as same ?
xml1:
<app><bam095>
<row><aaa>3</aaa><bbb>4</bbb></row>
<row><aaa>1</aaa><bbb>2</bbb></row>
</bam095></app>
xml2:
<app><bam095><row><aaa>1</aaa><bbb>2</bbb></row>
<row><aaa>3</aaa><bbb>4</bbb></row></bam095></app>
Shrasti-2020-11-04 16:01
its not getting highlihted instead next line is coming as expected color code.
Shrasti-2020-11-04 16:07
Whenever i am adding an attribute on right side xml, then its not highlighting the diffrence, instead it moves to next line and hoghlight that with proper color code instead.
While on left side its working as expected.
Hope you can help on that.
Cyril (Admin)-2020-11-11 15:00
Cyril (Admin)-2020-11-27 22:16
Nejood-2021-01-28 22:22
Rakesh-2021-03-14 08:42
Cyril (admin)-2021-03-14 11:01
Thyag-2021-03-26 10:04
A real xml comparison tool should compare randomly ordered data. This tool just does that.
Aadith-2021-08-04 12:28
屈永飞-2021-12-08 11:52
屈永飞-2021-12-08 12:02