Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EuGENia's XMI to XML or Java
EuGENia's XMI to XML or Java [message #1832900] Tue, 29 September 2020 03:59 Go to next message
Clever Alves is currently offline Clever AlvesFriend
Messages: 101
Registered: August 2019
Senior Member
Hi there!

I have a simple diagram built in a EuGENia-generated editor, which, in turn, automatically generates the diagram's XMI version as below:

index.php/fa/38988/0/

Since I'm not a programmer, I'd like to know the easiest way of converting this XMI code to standard XML or Java. Could anyone please help me?

Thank you for your attention.

Regards,

Clever.

PS:

<?xml version="1.0" encoding="UTF-8"?>
<hccm:HCCM xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:hccm="singleServerQueue">
<nodes xsi:type="hccm:Event" outgoing_transition="//@transitions.0" name="Arrival"/>
<nodes xsi:type="hccm:Activity" outgoing_transition="//@transitions.1" incoming_transition="//@transitions.0" name="Wait"/>
<nodes xsi:type="hccm:Activity" outgoing_transition="//@transitions.2" incoming_transition="//@transitions.1" name="Service"/>
<nodes xsi:type="hccm:Event" incoming_transition="//@transitions.2" name="Departure"/>
<transitions xsi:type="hccm:Arrow" start_node="//@nodes.0" finish_node="//@nodes.1"/>
<transitions xsi:type="hccm:Arrow" start_node="//@nodes.1" finish_node="//@nodes.2"/>
<transitions xsi:type="hccm:Arrow" start_node="//@nodes.2" finish_node="//@nodes.3"/>
</hccm:HCCM>
  • Attachment: Untitled.png
    (Size: 34.08KB, Downloaded 204 times)
Re: EuGENia's XMI to XML or Java [message #1832909 is a reply to message #1832900] Tue, 29 September 2020 06:38 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Clever,

One option would be to use EGL [1-4] to write a model-to-text transformation for this. If you're targeting plain XML, another option could be to use Epsilon's XML EMC driver [5].

Thanks,
Dimitris

[1] https://www.eclipse.org/epsilon/doc/egl
[2] https://www.eclipse.org/epsilon/doc/egx
[3] https://www.eclipse.org/epsilon/doc/articles/#epsilon-generation-language
[4] https://youtu.be/_5DCABgHn_4?list=PLRwHao6Ue0YUecg7vEUQTrtySIWwrd_mI&t=3081
[5] https://www.eclipse.org/epsilon/doc/articles/plain-xml/
Previous Topic:XML to any model
Next Topic:EGL bug? Need a quick help
Goto Forum:
  


Current Time: Fri Apr 26 20:45:10 GMT 2024

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

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

Back to the top