Hi Simon,
Tried this path. Addition of the Documentation exporter information does result in the UUIDs being brought in to EA but the stereotypes and tagged values are not. The Documentation exporter information is not enough; the EA add-ins must also be included within the xmi file. Currently, I am generating and using XMI 2.1 / UML 2.3 files without EA extensions. Importing this type of xmi file works with the exception of the UUID is not imported.
It has been indicated by Sparx that the formats in the publish xmi diaglog are not intended for round trip EA to EA and will lose information. This means that the full xmi 1.1 or xmi 2.1 (with EA extensions) would need to be used. This is where the problem lies since these are not documented (as far as I know).
Consider the following example xmi 2.1 file. With the Documentation exporter information, the tagged values and stereotypes will not be imported properly. Without the Documentation exporter information, the UUID will not be imported.
<?xml version="1.0" encoding="windows-1252"?>
<xmi:XMI
xmlns:uml="
http://schema.omg.org/spec/UML/2.3"
xmlns:xmi="
http://schema.omg.org/spec/XMI/2.1"
xmlns:CompView="
http://www.sparxsystems.com/profiles/CompView/1.5"
xmlns:PackageView="
http://www.sparxsystems.com/profiles/PackageView/1.1"
xmlns:BsmdView="
http://www.sparxsystems.com/profiles/BsmdView/1.0"
xmlns:thecustomprofile="
http://www.sparxsystems.com/profiles/thecustomprofile/1.0" xmi:version="2.1">
<xmi:Documentation exporter="Enterprise Architect" exporterVersion="6.5"/>
<uml:Model xmi:type="uml:Model" name="EA_Model">
<packagedElement xmi:type="uml:Package" xmi:id="EAPK_98135048_54de_98e3_41e1_66ccb1ecadc2" name="ARRoot">
<packagedElement xmi:type="uml:Package" xmi:id="EAPK_6c39594c_de42_94ce_5590_ddb1fc9c5cfa" name="ABC">
<packagedElement xmi:type="uml:Package" xmi:id="EAPK_7f79ac5f_0270_8793_c3a6_87ccac55ace4" name="Modules">
<packagedElement xmi:type="uml:Package" xmi:id="EAPK_4746d95a_9e91_b0c0_545b_95c024876e9c" name="Example">
<packagedElement xmi:type="uml:Package" xmi:id="EAPK_5aa610fa_e7e8_9c18_091a_e7a6a01f7036" name="BswModuleEntrys">
<nestedClassifier xmi:type="uml:Class" xmi:id="EAID_3ff4807c_be4f_9354_3544_d21ef997a6cf" name="Example_MainFunction"/>
</packagedElement>
</packagedElement>
</packagedElement>
<packagedElement xmi:type="uml:Package" xmi:id="EAPK_d0b31f64_3f9a_8366_277f_08225279a048" name="Interfaces">
<packagedElement xmi:type="uml:Package" xmi:id="EAPK_c312de93_13af_92c9_27ec_53e2c6548df7" name="Example">
<packagedElement xmi:type="uml:Interface" xmi:id="EAID_103d96e0_9bff_9e23_1133_b091323bd824" name="DrStatDrv_B_Actl"/></packagedElement>
</packagedElement>
</packagedElement>
</packagedElement>
<profileApplication xmi:type="uml:ProfileApplication" xmi:id="profileap_E27C4BAF-C">
<appliedProfile xmi:type="uml:Profile" href="
http://www.sparxsystems.com/profiles/PackageView/1.0#E27C4BAF-C"/>
</profileApplication>
<profileApplication xmi:type="uml:ProfileApplication" xmi:id="profileap_81D8F36A-0">
<appliedProfile xmi:type="uml:Profile" href="
http://www.sparxsystems.com/profiles/CompView/1.3#81D8F36A-0"/>
</profileApplication>
<profileApplication xmi:type="uml:ProfileApplication" xmi:id="profileap_61765CEA-5">
<appliedProfile xmi:type="uml:Profile" href="
http://www.sparxsystems.com/profiles/BsmdView/1.0#61765CEA-5"/>
</profileApplication>
</uml:Model>
<PackageView:arPkg base_Package="EAPK_6c39594c_de42_94ce_5590_ddb1fc9c5cfa"/>
<PackageView:arPkg base_Package="EAPK_7f79ac5f_0270_8793_c3a6_87ccac55ace4"/>
<PackageView:arPkg base_Package="EAPK_4746d95a_9e91_b0c0_545b_95c024876e9c"/>
<PackageView:arPkg base_Package="EAPK_5aa610fa_e7e8_9c18_091a_e7a6a01f7036"/>
<BsmdView:bswmEntry base_Class="EAID_3ff4807c_be4f_9354_3544_d21ef997a6cf" serviceId="1" isReentrant="false" isSyncronous="false" callType="SCHEDULED" execContext="TASK" swServImplPolicy="STANDARD"/>
<PackageView:arPkg base_Package="EAPK_d0b31f64_3f9a_8366_277f_08225279a048"/>
<PackageView:arPkg base_Package="EAPK_c312de93_13af_92c9_27ec_53e2c6548df7"/>
<CompView:sndrRecIf base_Interface="EAID_103d96e0_9bff_9e23_1133_b091323bd824" isService="false"/>
</xmi:XMI>
Exporting as a full xmi 2.1 file will include an XMI:Extension node which is specific to EA and not documented.
The creation of an EA compliant XMI file that includes EA extensions would be difficult without documentation.