API to import and export XMI

Hi,

Putting it simply, I want to integrate a tool with the functionality of importing and exporting XMI (with the option to draw UML diagrams as well) into my application. Is this possible If not, is there a work around for this one


Thank you.



Answer this question

API to import and export XMI

  • Dragomir

    Hi,

    I don't know anything about DSLs Can you point me to some tutorials


    Thank you.

  • vijey

    You can definetely build a DSL that import and export XMI models.

    If you look at MOF specification that gives you the information you need to serialize and deserialize your model instances.

    You can write the transformation as T4 templates accessing your DSL domain model and either producing the serialized XMI or creating Model Element Instances from XML elements you may have in memory.

    Once you have that DSL you can just create a setup and install it in any VS environment where you need that functionality.

    Hope this helps.

    Mauro Regio



  • George Lowe

    You can start with downloading the DSL Tookit from MSDN and visiting the DSL Forum.

    Hope this helps.

    Mauro Regio



  • MiniMichael

    Hi,

    Thanks for the links.I will go through them.

  • API to import and export XMI