Above you can download the template for creating MOF models in Poseidon. The second download is the Sample XML Metamodel (from the sample MDR XML module) created using Poseidon.
Getting XMI File
Poseidon uses zip-format for storing its files. To get the XMI file representing your UML model, extract this file (the file with xmi extension) from the *.zargo file coresponding to your UML model.
For creating MOF models please use the template for Poseidon for UML 1.5 above.
Getting XMI File
There are two ways of obtaining the XMI file:
- Choose File -> Export Project to XMI, and uncheck the checkbox "Save with diagram data". The resulting XMI file can be processed. Or,
- Poseidon uses the zip format to store its files. To get the XMI file representing your UML model, extract the file with xmi extension from the *.zuml file corresponding to your UML model. Then, edit the .xmi file and remove all XML nodes with the name UML:Diagram. The resulting file can be processed.
Above you can download the template for creating MOF models in MagicDraw. The second download is the Sample XML Metamodel (from the sample MDR XML module) created using MagicDraw.
Modeling Guidelines
MagicDraw 6.0 has a small bug that causes the XMI serialization of unlimited multiplicity to be incorrect. To avoid problems importing your UML models to MDR or converting them to MOF, "-1" needs to be used instead of "*" to indicate multiplicity of "many". E.g. instead of 0..* suggested by MagicDraw always use 0..-1, etc.Getting XMI File
There are two options of obtaining the XMI file from MagicDraw:
- MagicDraw uses zip-format by default for storing model files. To get the XMI file representing your UML model unzip the XMI file (the file with xml extension) from the corresponding *.xml.zip file
- Explicitly choose to save your model into XML file (in Sava As... dialog) - the resulting file will be the XMI file you need.