Is EMF Compare adapted to implement a generic XML compare ? [message #666446] |
Wed, 20 April 2011 09:38  |
Eclipse User |
|
|
|
Hello,
I am looking for a basis to start implementing an xml comparator. Form what i read so far about EMF Compare is that i first need and XSD which i have to transform to ECORE and then i can start implementing my comparator.
In my case, i do not have the XSD in advance, i should be able to compare 2 xml corresponding to the same XSD, but the XSD are not known in advance.
Therefore i wonder whether EMF Compare is adapted to what i need to implement.
Thank you for your help
Philippe
|
|
|
Re: Is EMF Compare adapted to implement a generic XML compare ? [message #666459 is a reply to message #666446] |
Wed, 20 April 2011 09:57  |
Eclipse User |
|
|
|
Philippe,
When you say 'the XSD are not known in advance' it's not known in
advance of what? It needs to be known before you read your instance
files, or at least while your reading them. EMF can dynamically
convert and XSD to an Ecore which is then used to read the XML (without
generating a model for the Ecore). The compare framework should be able
to deal with such a dynamic Ecore model.
Philippe Favrais wrote:
> Hello,
> I am looking for a basis to start implementing an xml comparator. Form
> what i read so far about EMF Compare is that i first need and XSD
> which i have to transform to ECORE and then i can start implementing
> my comparator.
> In my case, i do not have the XSD in advance, i should be able to
> compare 2 xml corresponding to the same XSD, but the XSD are not known
> in advance. Therefore i wonder whether EMF Compare is adapted to what
> i need to implement.
> Thank you for your help
> Philippe
>
|
|
|
Powered by
FUDForum. Page generated in 0.45237 seconds