2

I need to convert a xmi file from a UML model createed with Papyrus into python class and objects. I found xmiparser api, but I didn´t found any documentation or tutorial to use it. Is this API deprecated?

It has some useful methods like xmiparser.getElementByTagName() but I don´t know how to use the API to import the xmi file for example.

I tried to use PyXMI but it didn´t work like I expected.

F.Stan
  • 553
  • 1
  • 10
  • 23
  • 1
    You could do all the parsing by hand, but it will be very painful if you want to parse everything properly. I know that it is usually badly seen to propose another solution to the initial request, but I developed '[pyuml2](https://github.com/pyecore/pyuml2)' which is an implementation of UML2 in Python (with XMI support) which aims to be compliant with the Eclipse/Papyrus implementation. The implementation is still a WIP on some points but is easier to handle than doing the parsing by hand, and it provides facilities to manipulate the produced model. – Vincent Aranega Sep 17 '18 at 16:00

0 Answers0