Hello Oliver,
Thanks for your reply.
To make the things more clearer to you. Please have a look at this now.
My main objective is to export the enterprise architect diagrams to
eclipse based applicton. The application reads the diagrams in .uml
format. I tried to change the extension of the xmi generated by EA
diagrams into .uml, but this xmi is different from the standard .uml
file. For more undertsanding, i am sending you the example .uml file
structure which i need my EA models to be converted in. Check that this file mentions each model element with _xmi:type="uml: element type"._
<?xml version="1.0" encoding="UTF-8"?>
<uml:Model xmi:version="2.1"
xmlns:xmi="
http://schema.omg.org/spec/XMI/2.1"
xmlns:ecore="
http://www.eclipse.org/emf/2002/Ecore"
xmlns:uml="
http://www.eclipse.org/uml2/2.1.0/UML" xmi:id="idModel"
name="actModel">
<packagedElement xmi:type="uml:Package" xmi:id="idPackage"
name="actPackage">
<packagedElement xmi:type="uml:Activity" xmi:id="idActivity"
name="actActivity">
<node xmi:type="uml:InitialNode" xmi:id="_5gjTIPXGEdy1NpYnC6ZNAA"
name="InitialNode1" outgoing="_3_iBh_tGEdyjC9ORvMK87Q"/>
<node xmi:type="uml:ActivityFinalNode"
xmi:id="_Cl7jQvXHEdy1NpYnC6ZNAA" name="ActivityFinalNode1"
incoming="_eYnnF_XHEdy1NpYnC6ZNAA"/>
<node xmi:type="uml:StructuredActivityNode"
xmi:id="_b1lCkPXHEdy1NpYnC6ZNAA" name="StructuredActivityNode1"
outgoing="_eYnnF_XHEdy1NpYnC6ZNAA" incoming="_3_iBh_tGEdyjC9ORvMK87Q"/>
<node xmi:type="uml:InitialNode" xmi:id="_KLk_YPtAEdyjC9ORvMK87Q"
name="InitialNode2"/>
<edge xmi:type="uml:ControlFlow" xmi:id="_eYnnF_XHEdy1NpYnC6ZNAA"
name="ControlFlow2" source="_b1lCkPXHEdy1NpYnC6ZNAA"
target="_Cl7jQvXHEdy1NpYnC6ZNAA">
<guard xmi:type="uml:LiteralBoolean"
xmi:id="_eYnnGPXHEdy1NpYnC6ZNAA" value="true"/>
<weight xmi:type="uml:LiteralInteger"
xmi:id="_eYnnGfXHEdy1NpYnC6ZNAA" value="1"/>
</edge>
<edge xmi:type="uml:ControlFlow" xmi:id="_3_iBh_tGEdyjC9ORvMK87Q"
name="ControlFlow3" source="_5gjTIPXGEdy1NpYnC6ZNAA"
target="_b1lCkPXHEdy1NpYnC6ZNAA">
<guard xmi:type="uml:LiteralBoolean"
xmi:id="_3_iBiPtGEdyjC9ORvMK87Q" value="true"/>
<weight xmi:type="uml:LiteralInteger"
xmi:id="_3_iBiftGEdyjC9ORvMK87Q" value="1"/>
</edge>
</packagedElement>
<packagedElement xmi:type="uml:Stereotype"
xmi:id="_49EWIPXHEdy1NpYnC6ZNAA" name="stereo"/>
<profileApplication xmi:id="_kDH2UPXIEdy1NpYnC6ZNAA">
<eAnnotations xmi:id="_kDkiQPXIEdy1NpYnC6ZNAA"
source="
http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage"
href="pathmap://UML_PROFILES/Standard.profile.uml#_yzU58YinEdqtvbnfB2L_5w"/>
</eAnnotations>
<appliedProfile
href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
</profileApplication>
</packagedElement>
</uml:Model>
Regards
Saurabh