How do I specify the order of elements in a generated XML Schema?
I have 3 classes, A, B, C. A has an association to B and C. In the generated schema, I want the <complexType> declaration for A to define a <sequence> with <element> references first to B, then to C.
The docs say something about a "position" tag on the <<XSDelement>> Profile element, as applied to the UML Attribute or AssociationEnd. However, if I drop the XSDelement Profile element onto B or C, I don't see the "position" tag; if I add the tag manually, it doesn't seem to take effect.
The only way I can guarantee the ordering of the elements within the sequence is to remove the associations from B to A and C to A (Links tab, Delete relation button), then re-draw the associations in the order I want to see the elements; in this case, first from A to B, then from A to C. This can get cumbersome, however.
Any pointers would be appreciated.