Book a Demo

Author Topic: Generate xsd in different folders with projectInterface.GenerateXSD function  (Read 3094 times)

cecD

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
I have the following problem :

I developed a script that launches automatically the generation of XSD schemas from UML model (by calling MDA customized transformations and after the projectInterface.GenerateXSD function).
I don’t use the Schema Composer because the UML models are always modified and I want a full automatic process that takes into account the evolutions from the UML and that generates the xsd without a human action.

My EA project is organized as follows:
ROOT:
-   PACKAGE_1
        - PACKAGE_1-1
        - PACKAGE_1-2
-   PACKAGE_2
        - PACKAGE_2-1
        - PACKAGE_2-2
        - …

There are dependencies between classes from PACKAGE_1 and classes from PACKAGE_2.
At this time, all the xsd are generated in the same folder:
o   PACKAGE_1-1.xsd
o   PACKAGE_1-2.xsd
o   PACKAGE_2-1.xsd
o   PACKAGE_2-2.xsd

I wonder if it could be possible to organize the xsd like this (automatic creation of folders that correspond to the Package organization in EA, with a good management of “include” in the xsd):
PACKAGE_1
-   PACKAGE_1-1.xsd
-   PACKAGE_1-2.xsd
PACKAGE_2
-   PACKAGE_2-1.xsd
-   PACKAGE_2-2.xsd

Do you have any idea?
Thanks a lot for your support.

VKN

  • EA User
  • **
  • Posts: 187
  • Karma: +9/-1
    • View Profile
You need to supply a path for each child package by double-clicking on the package name in the list. See Generate XSD for Child packages on this page.
http://www.sparxsystems.com/enterprise_architect_user_guide/13.0/model_domains/generate_xsd.html