1
Automation Interface, Add-Ins and Tools / Export UML diagram to XML
« on: March 09, 2015, 07:08:54 pm »
I have created a UML class diagram with few classes and added attributes with default values. In the next step I created objects from those classes and put them on a object diagram.
Now I want to export the information in an xml file, which will be the input for a project I’m actually working on.
The file has a specific form which looks like this for the class "component" with the attributes "ID" and "Memory":
<components>
<component>
<property name="ID" type="integer">0</property>
<property name="Mem" type="integer">512</property>
</component>
<component>
<property name="ID" type="integer">1</property>
<property name="Mem" type="integer">128</property>
</component>
</components>
“Export package to XMI” (Project ->Model Import/Export) exports the whole project with a lot of information which I do not need. Is it possible to select the elements and attributes which shall be exported? Or is there a smart plugin which could help me?
Thanks in advance!
Hans
Now I want to export the information in an xml file, which will be the input for a project I’m actually working on.
The file has a specific form which looks like this for the class "component" with the attributes "ID" and "Memory":
<components>
<component>
<property name="ID" type="integer">0</property>
<property name="Mem" type="integer">512</property>
</component>
<component>
<property name="ID" type="integer">1</property>
<property name="Mem" type="integer">128</property>
</component>
</components>
“Export package to XMI” (Project ->Model Import/Export) exports the whole project with a lot of information which I do not need. Is it possible to select the elements and attributes which shall be exported? Or is there a smart plugin which could help me?
Thanks in advance!
Hans