Documentation

gitHub

From Sparx Enterprise Architect

If you have data models in Sparx Enterprise Architect and want to leverage them in Hackolade Studio, you need to fist export them to XSD, following the instructions below.  You should first consult this page for an overview of the import functionality in Hackolade Studio.

 

By default Enterprise Architect does not export primary key and foreign key constraints.  If the XSD does not contain this information, this reverse-engineering process cannot import them, but it is still possible to use the functionality to Infer PKs & FKs.

 

The XSD generation is a package-level operation in EA.  

 

Getting Started
To use the schema generation facility you will require the following:

  • EA Professional or Corporate edition
  • XSDDataTypes Package: This package contains classes representing XSD primitive data types. This package is available as an XMI file. To import the file as a UML Package, use EA's XMI import facility which is available from the menu item: Project | Import/Export | Import Package from XMI.
  • UML Profile for XML: This resource file contains the stereotyped classes which allow the schema generation to be customized. The UML Profile for XML can be imported into a model using the Resource View (see Importing Profiles for details on importing UML profiles into EA).

Steps to Generate XSD

  1. Select the package to be converted to XSD by right-clicking on the package in the Project Browser.
  2. Select Project | Generate XML Schema from the main menu.
  3. Set the desired output file using the Filename field.
  4. Set the desired xml encoding using the Encoding field.
  5. Click on the Generate button to generate the schema.
  6. The progress of the schema generator will be shown in the Progress edit box.

 

More information can be found here.

 

After the successful export of your model to XSD, use the instructions in this page to import the XSD into a Hackolade Studio model for the target of your choice.