We are looking to use Sparx instead of UModel and looking to import the class diagrams. However when I try and import any diagram, even a simple class, it doesn't work. Sparx doesn't show any errors and says import is complete but no objects appear in the model/component view.
Simple file shown below, which just has two classes:
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmlns:xmi="
http://www.omg.org/spec/XMI/20110701" xmlns:uml="
http://www.omg.org/spec/UML/20110701">
<xmi:Documentation>
<contact>www.altova.com</contact>
<exporter>Altova UModel2019sp1</exporter>
<exporterVersion>17</exporterVersion>
</xmi:Documentation>
<uml:Model xmi:id="U00000001-7510-11d9-86f2-000476a22f44" xmi:uuid="00000001-7510-11d9-86f2-000476a22f44" name="Root">
<packagedElement xmi:type="uml:Package" xmi:id="U00000003-7510-11d9-86f2-000476a22f44" xmi:uuid="00000003-7510-11d9-86f2-000476a22f44" name="Component View"/>
<packagedElement xmi:type="uml:Class" xmi:id="U7f31e1ae-9d75-4005-9d96-b2163ba9a5c7" xmi:uuid="7f31e1ae-9d75-4005-9d96-b2163ba9a5c7" name="cl_test1">
<ownedAttribute xmi:type="uml:Property" xmi:id="U8017a5e2-7ad1-4d45-b8f5-54278647404c" xmi:uuid="8017a5e2-7ad1-4d45-b8f5-54278647404c" name="Property1" visibility="protected" type="U31e41923-f239-4504-b703-1b052f0a8e96">
<association xmi:idref="U07c05067-14f6-4938-ba73-3821f0402672"/>
</ownedAttribute>
<ownedOperation xmi:type="uml:Operation" xmi:id="U8c7e3714-c056-46f4-9a2f-769792b40c0e" xmi:uuid="8c7e3714-c056-46f4-9a2f-769792b40c0e" name="CreateCar" visibility="public"/>
<ownedOperation xmi:type="uml:Operation" xmi:id="Ubad35397-7056-41de-bc27-bed160a54101" xmi:uuid="bad35397-7056-41de-bc27-bed160a54101" name="UpdateCar" visibility="public"/>
</packagedElement>
<packagedElement xmi:type="uml:Class" xmi:id="U31e41923-f239-4504-b703-1b052f0a8e96" xmi:uuid="31e41923-f239-4504-b703-1b052f0a8e96" name="cl_Car">
<ownedAttribute xmi:type="uml:Property" xmi:id="U16e045ec-3e38-4771-aa53-154291b74a0f" xmi:uuid="16e045ec-3e38-4771-aa53-154291b74a0f" name="Wheels" visibility="protected"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="Ucb832968-5138-43b0-8f3c-7450da209a16" xmi:uuid="cb832968-5138-43b0-8f3c-7450da209a16" name="Engine" visibility="protected"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="U8fba3234-91a8-43a9-a892-920675ad8e96" xmi:uuid="8fba3234-91a8-43a9-a892-920675ad8e96" name="Doors" visibility="protected"/>
</packagedElement>
<packagedElement xmi:type="uml:Association" xmi:id="U07c05067-14f6-4938-ba73-3821f0402672" xmi:uuid="07c05067-14f6-4938-ba73-3821f0402672">
<memberEnd xmi:idref="U8017a5e2-7ad1-4d45-b8f5-54278647404c"/>
<ownedEnd xmi:type="uml:Property" xmi:id="U0d17d0c6-52c6-4506-8b16-c4f3c1c6cfbb" xmi:uuid="0d17d0c6-52c6-4506-8b16-c4f3c1c6cfbb" visibility="protected" type="U7f31e1ae-9d75-4005-9d96-b2163ba9a5c7">
<association xmi:idref="U07c05067-14f6-4938-ba73-3821f0402672"/>
</ownedEnd>
<memberEnd xmi:idref="U0d17d0c6-52c6-4506-8b16-c4f3c1c6cfbb"/>
</packagedElement>
</uml:Model>
</xmi:XMI>
I have tried changing certain attributes such encoding, model, but nothing seems to work. If I export a sparx model from Sparx and re-import it, it does then work fine. So it must be something specific above that is wrong.
Any ideas?
TIA