Page 1 of 1

Creating XSD with associations across multiple packages

PostPosted: Wed Mar 25, 2020 10:45 am
by rubab.m.sayeed@nasa.gov
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?

Re: Creating XSD with associations across multiple packages

PostPosted: Thu Mar 04, 2021 4:41 am
by annephillip98@gmail.com
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.

Re: Creating XSD with associations across multiple packages

PostPosted: Wed Mar 17, 2021 5:27 am
by tonisander16@gmail.com
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.