Creating XSD with associations across multiple packages

Discussions about database modeling product Cameo Data Modeler functionalities

Moderator: Moderators

Creating XSD with associations across multiple packages

Postby rubab.m.sayeed@nasa.gov » Wed Mar 25, 2020 10:45 am

Hi all. I was wondering if someone can assist in my effort to creating an XSD file out of MagicDraw. I have two package files containing several classes in each. Some of these classes have associations with each other cross package (essentially foreign keys). When I proceed to create an XSD file with both of these packages, the foreign key dependencies between these classes are not included, but rest of the XSD file looks good. All tables are created under a xs:ComplexType with attributes as xs:elements. I just can't find a way to get the dependencies between classes across both packages to show up. Any ideas?
rubab.m.sayeed@nasa.gov
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:1
Joined: Wed Mar 25, 2020 10:38 am

Re: Creating XSD with associations across multiple packages

Postby annephillip98@gmail.com » Thu Mar 04, 2021 4:41 am

rubab.m.sayeed@nasa.gov wrote:Hi all. I was wondering if someone can assist in my effort to creating an XSD file out of MagicDraw. I have two package files containing several classes in each. Some of these classes have associations with each other cross package (essentially foreign keys). When I proceed to create an XSD file with both of these packages, the foreign key dependencies between these classes are not included, but rest of the XSD file looks good. All tables are created under a xs:ComplexType with attributes as xs:elements. I just can't find a way to get the dependencies between classes across both packages to show up. Any ideas?



To import the file as a UML Package, use EA's XMI import facility which is available from the menu item: Project ... Select Project | Generate XML Schema from the main menu. The element name is set to that of the association role.
annephillip98@gmail.com
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:0
Joined: Thu Mar 04, 2021 4:39 am

Re: Creating XSD with associations across multiple packages

Postby tonisander16@gmail.com » Wed Mar 17, 2021 5:27 am

To reverse engineer a W3C XML Schema (XSD) file to create or overwrite a Select this checkbox to treat the global element and the ComplexType it is referring to as two separate entities. Select this checkbox to create a Class diagram under each imported XSDschema Package. UML Associations or; UML attributes.
tonisander16@gmail.com
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:0
Joined: Wed Mar 17, 2021 5:26 am


Return to Cameo Data Modeler

Who is online

Users browsing this forum: No registered users and 0 guests