'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?



Solution 1:[1]

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

step1step2step3

Solution 2:[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 ...

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 abatista
Solution 2 Wolfgang Fahl