Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums[ATL] How to make an ecore from XSD and its XML?
https://www.eclipse.org/forums/index.php/mv/msg/169439/538017/#msg_538017
For my ATL-Transformation I have as Metamodel and as its Model
two files - xsd and xml respectively.
Now, if I import them into my ATL-Project, Eclipse gives errors and doesn't provide the "tree-view".
Thus, I need to make two ecore-files from xsd and xml. Are there any converters for that? How is it possible to convert xsd and xml to an ecore?
Thanks a lot,
Alexey ]]>Alexey2010-06-04T14:08:16-00:00Re: [ATL] How to make an ecore from XSD and its XML?
https://www.eclipse.org/forums/index.php/mv/msg/169439/538022/#msg_538022
Sylvain EVEILLARD2010-06-04T14:31:00-00:00Re: [ATL] How to make an ecore from XSD and its XML?
https://www.eclipse.org/forums/index.php/mv/msg/169439/538026/#msg_538026
--------------060904020308060109030700
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
--------------060904020308060109030700--]]>Ed Merks2010-06-04T14:34:35-00:00Re: [ATL] How to make an ecore from XSD and its XML?
https://www.eclipse.org/forums/index.php/mv/msg/169439/538042/#msg_538042
Alexey2010-06-04T16:12:37-00:00Re: [ATL] How to make an ecore from XSD and its XML?
https://www.eclipse.org/forums/index.php/mv/msg/169439/538044/#msg_538044
but I need to convert the xml 2 ecore too!
Or it goes the same way as with xsd?
Tnanx]]>Alexey2010-06-04T16:18:10-00:00Re: [ATL] How to make an ecore from XSD and its XML?
https://www.eclipse.org/forums/index.php/mv/msg/169439/538057/#msg_538057
It just doesn't make sense to convert arbitrary XML to Ecore. No doubt
you want something else. Once you convert the XSD to Ecore then you'll
be able to process conforming XML instances as instances of Ecore.
E.g., a complex type in XSD maps to an EClass in Ecore, so when reading
the conforming XML instances of that XSD, you'll be creating EObject
that are instances of such EClasses.
Alexey wrote:
> By the way, I found there only xsd 2 ecore - Manual,
> but I need to convert the xml 2 ecore too!
>
> Or it goes the same way as with xsd?
>
> Tnanx]]>Ed Merks2010-06-04T17:23:59-00:00Re: [ATL] How to make an ecore from XSD and its XML?
https://www.eclipse.org/forums/index.php/mv/msg/169439/538314/#msg_538314
Thank you for your patience and for your help!
I try to explain this matter with xml 2 ecore.
The situation is - that I have a ready input for my future ATL-transformation in form of two files - an XSD and a conform XML. Both are very big and they are ALREADY CREATED, xml too.
So it's not like : "Get ecore from xsd and make your own models", but its more like "Get XSD as MM and its XML as M and work with that on ATL".
I have a PREPARED XML-file, which I have to integrate in Eclipse.
Thats why I ask - what should I do with the Model itself (the XML-file), when Im ready with XSD-2-Ecore transformation?
I hope, I explained the matter more accuratelly.
Thank you in advance,
Alexey]]>Alexey2010-06-07T10:22:44-00:00