www.admiraalit.nl
www.admiraalit.nl

Reputation: 6089

Enterprise Architect's XSD generator generates ref attribute instead of name attribute

Using the XML Schema toolbox, I have created the following diagram:

UML-diagram-created

After generating the XSD, I get the following result:

XSD-generated

Please note that the association is represented by

<xs:element ref="lib:Author"   >

Instead, I would like to have:

<xs:element name="author" type="lib:Author"   >

How should I change the model to achieve this in Enterprise Architect?

Upvotes: 2

Views: 319

Answers (1)

www.admiraalit.nl
www.admiraalit.nl

Reputation: 6089

The solution is to add a tagged value 'anonymousRole=false' to the association, as follows:

taggedvalue-anonymousRole

Alternatively, this setting can be made at a global level, as a package property:

package-property-anonymousRole

Upvotes: 6

Related Questions