Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UML to XML representation

I build a class diagram using Eclipse modeling tool-Papyrus. how can i export UML diagram to XML format to see the class, attribute, and generalization, etc. relationships represented in XML? How can I do this?

like image 738
Carlos Avatar asked Nov 01 '12 19:11

Carlos


2 Answers

I have solved my question using Eclipse and posted the solution as series of steps

step1step2step3

like image 91
Carlos Avatar answered Nov 06 '22 06:11

Carlos


According to the Papyrus website:

http://www.papyrusuml.org/scripts/home/publigen/content/templates/show.asp?P=130&L=EN&ITEMID=4

they do have: "Full respect of the DI2 (Diagram Interchange ) standard" see

http://www.omg.org/cgi-bin/doc?formal/2006-04-04.pdf

You'll find an example at:

  • Diagram interchange: https://speedy.supelec.fr/Papyrus/svn/Papyrus/examples/UML2JAVA/HelloWorld/releases/1.0.0/HelloWorld/mdl/HelloWorld.di2

  • XMI export: https://speedy.supelec.fr/Papyrus/svn/Papyrus/examples/UML2JAVA/HelloWorld/releases/1.0.0/HelloWorld/mdl/HelloWorld.uml

since I do not use Papyrus myself and the tutorials I browsed have no hint on how to actually do the export these are my two cents for a start ...

like image 28
Wolfgang Fahl Avatar answered Nov 06 '22 06:11

Wolfgang Fahl