Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] How to make an ecore from XSD and its XML?
[ATL] How to make an ecore from XSD and its XML? [message #538017] Fri, 04 June 2010 10:08 Go to next message
Eclipse UserFriend
Hello!

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

[Updated on: Fri, 04 June 2010 10:21] by Moderator

Re: [ATL] How to make an ecore from XSD and its XML? [message #538022 is a reply to message #538017] Fri, 04 June 2010 10:31 Go to previous messageGo to next message
Eclipse UserFriend
The answer holds in 3 letters : EMF
Re: [ATL] How to make an ecore from XSD and its XML? [message #538026 is a reply to message #538022] Fri, 04 June 2010 10:34 Go to previous messageGo to next message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------060904020308060109030700
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Have a look at these.

Tutorial: Generating an EMF Model using XML Schema
< http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.emf.doc/tutorials/xlibmod/xlibmod.html>
Binding XML to Java
< http://www.theserverside.com/tt/articles/article.tss?l=Bindi ngXMLJava>


Sylvain EVEILLARD wrote:
> The answer holds in 3 letters : EMF

--------------060904020308060109030700
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Have a look at these.<br>
<blockquote><a
href=" http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.emf.doc/tutorials/xlibmod/xlibmod.html">Tutorial:
Generating an EMF Model using XML Schema</a><br>
<a target="_out"
href=" http://www.theserverside.com/tt/articles/article.tss?l=Bindi ngXMLJava">Binding
XML to Java</a><br>
</blockquote>
<br>
Sylvain EVEILLARD wrote:
<blockquote cite="mid:hub2n5$l82$1@build.eclipse.org" type="cite">The
answer holds in 3 letters : EMF
<br>
</blockquote>
</body>
</html>

--------------060904020308060109030700--
Re: [ATL] How to make an ecore from XSD and its XML? [message #538042 is a reply to message #538026] Fri, 04 June 2010 12:12 Go to previous messageGo to next message
Eclipse UserFriend
Thank you, Ed. I'll try the step-by-step-Guide.
Re: [ATL] How to make an ecore from XSD and its XML? [message #538044 is a reply to message #538026] Fri, 04 June 2010 12:18 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: [ATL] How to make an ecore from XSD and its XML? [message #538057 is a reply to message #538044] Fri, 04 June 2010 13:23 Go to previous messageGo to next message
Eclipse UserFriend
Alexey,

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
Re: [ATL] How to make an ecore from XSD and its XML? [message #538314 is a reply to message #538057] Mon, 07 June 2010 06:22 Go to previous message
Eclipse UserFriend
Hi, Ed!

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

[Updated on: Mon, 07 June 2010 06:48] by Moderator

Previous Topic:Possible to reference to two helpers in the same rule
Next Topic:[xtend] workflow error
Goto Forum:
  


Current Time: Thu Jun 12 15:43:21 EDT 2025

Powered by FUDForum. Page generated in 0.06122 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top