Skip to main content



      Home
Home » Modeling » ATL » Generated model with wrong xmi tags(Generated model with wrong xmi tags)
icon8.gif  Generated model with wrong xmi tags [message #1121837] Mon, 30 September 2013 21:59 Go to next message
Eclipse UserFriend
Dear all,

I'm doing an ATL transformation from UML to PNML Core Model (pnml.org).

I was hopping to obtain some result like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<PetriNetDoc xmlns:xsi="www.w3.org/2001/XMLSchema-instance" xmlns="www.pnml.org/version-2009/grammar/pnml" xmlns="www.pnml.org/version-2009/grammar/pnml">
  <nets>
    <pages id="EngineStateMachine">
      <Place id="IDOperate">
        <name text="Operate"/>
        <initialMarking text="0"/>
        <bound text="1"/>
      </Place>
      <Arc id="IDrelease brake" source="IDrelease brake" target="IDBraking"/>
      <RefPlace id="IDrelease brake" OutArcs="IDrelease brake"/>
      <RefTransition id="IDstartSt" InArcs="IDtr1"/>


but I'm obtaining this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<PetriNetDoc xmlns:xsi="www.w3.org/2001/XMLSchema-instance" xmlns="www.pnml.org/version-2009/grammar/pnml" xmlns="www.pnml.org/version-2009/grammar/pnml">
  <nets>
    <pages id="EngineStateMachine">
      <objects xsi:type="Place" id="IDOperate">
        <name text="Operate"/>
        <initialMarking text="0"/>
        <bound text="1"/>
      </objects>
      <objects xsi:type="Arc" id="IDrelease brake" source="IDrelease brake" target="IDBraking"/>
      <objects xsi:type="RefPlace" id="IDrelease brake" OutArcs="IDrelease brake"/>
      <objects xsi:type="RefTransition" id="IDstartSt" InArcs="IDtr1"/>


Any idea about what can be the problem?
thank you,
Rui
Re: Generated model with wrong xmi tags [message #1122362 is a reply to message #1121837] Tue, 01 October 2013 09:40 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

These are just different serializations for XMI, but the actual model elements seem to be the same in both cases.
To avoid such confusions (and to be sure that your models are correct), it is recommended to don't look to the models as text (XMI) files but rather to use dedicated model editors/browsers.
For instance, you can use the generic MoDisco Model Browser.

Best regards,
Re: Generated model with wrong xmi tags [message #1122825 is a reply to message #1122362] Tue, 01 October 2013 20:27 Go to previous messageGo to next message
Eclipse UserFriend
Thanks Hugo for quick reply.
My problem is that some tools would not read my generated XMI model.
I'll proceed with the model transformation and later I will see this question better.

Best regards,
Rui

Re: Generated model with wrong xmi tags [message #1219341 is a reply to message #1122825] Tue, 03 December 2013 08:00 Go to previous messageGo to next message
Eclipse UserFriend
I have the same need, if you have find a solution !
Re: Generated model with wrong xmi tags [message #1219373 is a reply to message #1219341] Tue, 03 December 2013 10:02 Go to previous message
Eclipse UserFriend
On 03/12/2013 14:47, rahim lyes wrote:
> I have the same need, if you have find a solution !
The EMF book explains how to customize XML serialization.

Regards

Ed Willink
Previous Topic:Please help me to check the helper context in ATL
Next Topic:[EMFTVM] Accessin output elements' attributes
Goto Forum:
  


Current Time: Wed Jul 23 15:05:33 EDT 2025

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

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

Back to the top