13

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?

Carlos
  • 1,522
  • 5
  • 14
  • 26
  • If you want to export UML diagram to XML format you can use XML Spy's Schema Editor. – amitesh Nov 02 '12 at 10:06
  • hello amitesh ,do you have other solution?i dont seek for editor – Carlos Nov 03 '12 at 08:08
  • you can use microsoft visio if you want.. if that help you then let me know. – amitesh Nov 03 '12 at 11:36
  • dear amitesh, i cant use microsoft visio because i intented to use MARTE so Papyrus support MARTE but microsoft visio not support MARTE – Carlos Nov 03 '12 at 19:46
  • hi @safa Eng i search alot for this may be this link will help you http://www.eclipse.org/forums/index.php/t/308606/ or try google search and sry for not helping you futher. – amitesh Nov 05 '12 at 08:16
  • hello @amitesh thank you so much for your efforts – Carlos Nov 06 '12 at 20:46
  • tell me link provided by me is helpful for you??? @safa Eng – amitesh Nov 07 '12 at 12:00
  • hello @amitesh and thank you so much for help .yes your link shed some light on but there is still something like url and technical stuff information in xmi file of my diagram?i wonder whether or not this is the right way or there is an other? – Carlos Nov 07 '12 at 14:31

2 Answers2

6

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

step1 step2 step3

abatista
  • 79
  • 9
Carlos
  • 1,522
  • 5
  • 14
  • 26
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:

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 ...

Wolfgang Fahl
  • 15,016
  • 11
  • 93
  • 186
  • thank you @Wolfgang Fahl for your efforts but i am asking about how to convert UML to XML using Papyrus on condition every element of diagram represented in XML.because when i view the di in XML editor i only found it meaningless as it contains only technical stuff.Any other advice or suggestion? – Carlos Nov 04 '12 at 08:48