问题
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?
回答1:
now i solved my question and post it as series of steps
回答2:
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 ...
来源:https://stackoverflow.com/questions/13184412/uml-to-xml-representation