The Schema Composer also supports the creation of simple XSD and other formats from generic UML Classes. This is particularly useful when there is a need to export a class definition in a generic manner for consumption by a script or web based tool, for example.
Generating schema from Class diagram
Users who prefer to use a modeling approach in composition can also use the Schema Composer for the generation of their chosen format(s). Any Class diagram can be loaded into the Schema Composer. This image illustrates a message composed using the UML Profile for Core Components, but it is not necessary for the message to be modeled according to a particular UML profile.
Loading the message into the Composer
The message is loaded into the Composer by selecting a Class on the diagram that represents the message and using its context menu to present the diagram as a schema in the Schema Composer. The selected Class will become the root element of the message and its relationships will shape the schema that is loaded.
This is the Class diagram loaded into the Schema Composer
Generating XML Schema
Once the diagram loaded, the schema can be generated immediately.