Book a Demo

Author Topic: Generating an XSD for just diagram objects  (Read 6458 times)

AdamViva

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Generating an XSD for just diagram objects
« on: November 13, 2015, 09:30:03 am »
Hi everyone,
It's easy enough to generate an XSD for objects in a package.

Can anyone recommend a way to generate an XSD only for objects (or related objects) that appear on a given diagram?



Thanks in advance,

Adam.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Generating an XSD for just diagram objects
« Reply #1 on: November 13, 2015, 03:22:41 pm »
Adam,

Have a look at the schema composer.
That will allow you to pick and select which elements, and which attributes of those elements will be generated as XSD.

Geert

janab

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Generating an XSD for just diagram objects
« Reply #2 on: November 25, 2015, 01:18:47 am »
Hi, I started with the Schema Composer. Have a UML Model for the Banking Industry (originally from Rational and imported in EA). So of the inheritance does not always show. I would say it works mostly and then I get this one or two classes where it does not. I also cannot edit the multiplicity on a class. Anyone else having problems? Any suggestions would be appreciated
 :-/

Rodrigo Nascimento

  • EA User
  • **
  • Posts: 33
  • Karma: +3/-0
    • View Profile
Re: Generating an XSD for just diagram objects
« Reply #3 on: November 27, 2015, 10:31:09 pm »
Take a look at my articles about class specialisation for XSD models and the schema composer overview:

http://connection.rnascimento.com

You can also customise the Schema Composer to behave the way you need. That is what I usually do. I've been promising an article about it... I will try to post it soon...

The new EA 12.1 (beta) also has some promising improvements, but (until build 1223) most of them are still WIP (as I would expect from a beta version).
Please check my blog for more EA related articles!

http://connection.rnascimento.com

Rodrigo Nascimento

  • EA User
  • **
  • Posts: 33
  • Karma: +3/-0
    • View Profile
Re: Generating an XSD for just diagram objects
« Reply #4 on: December 07, 2015, 08:50:41 pm »
Just in case you are interested in extending the Schema Composer, here is the promised link:

http://connection.rnascimento.com/2015/12/03/extending-sparx-ea-schema-composer/

Regards,
Rod
Please check my blog for more EA related articles!

http://connection.rnascimento.com

janab

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Generating an XSD for just diagram objects
« Reply #5 on: December 07, 2015, 09:01:02 pm »
Thanks Rod