|Re: How to convert the .uml generated from Magic draw to .ecore using UML2EcoreConverter [message #1722951 is a reply to message #1722908]
||Wed, 10 February 2016 13:07
| Ed Willink
Registered: July 2009
If you want to convert UML to XSD once , yes, go via Ecore, manually.
If you want to convert UML to XSD many times, reconsider, use of XSD is
unnecessary and arguably unhelpful for modeling purposes.
All the UML facilities should work programmatically; you just need to
get your initialization correct.
On 10/02/2016 09:32, Zille Huma wrote:
> Hi Ed,
> thanks for the prompt reply and further guiding references.
> I would try to explain my problem in more detail. At the moment, I
> have my .uml generated through magic draw. My goal is to generate its
> corresponding .xsd programmatically. First i tested it with EMF
> project wizard. Here, I created a project and imported this .uml as
> uml model. This step generated an EMF project with corresponding
> .ecore and .genmodel. Later i exported the .genmodel by the option
> 'Export model' and exported to it corresponding .xsd.
> Now, when i am trying to do it programmatically, I assume that i have
> to carry out in similar steps, i.e., .uml--> .ecore --> .xsd. What is
> your opinion in this regard? I do not have to convert the .uml to
> .ecore before converting it to .xsd? can i do this conversion directly?
> THanks in advance.
Powered by FUDForum
. Page generated in 0.03673 seconds