UML to XML representation

三世轮回 提交于 2019-12-08 15:24:25

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!