Cédric Brun bio photo

Cédric Brun

Build open-source technologies to enable mission critical tools for complex domains.

Email Twitter LinkedIn Github Youtube

On the EMFT mailing-list, Martin Taal asked me if EMF compare component was useful when one has to handle XML files.

Thanks to the EMF/XSD project this feature just comes at no cost! If you create your metamodel using an XSD then the model will be serialized in its native XML format but in the EMF compare point of view, it’s just another EMF model! Then you’re able to compare, and of course merge modifications on the files.

Here’s a screenshot of the tool comparing two XML files coming from the well-known “Library” example (sorry I did not put nice icons on the models ;) )

EMF Compare XML

The XSD project really should have more visibility, it’s obviously useful in many use cases where XML matters and EMF provides so many nice features, you should not miss that!