UML-to-XSD transformation extension

This sample shows how to create a plug-in that extends the UML-to-XSD transformation. The extension that you create in this sample performs post-processing operations on the generated XML Schema Definition (XSD) files before saving them.
Time required: 1 hour
By default, the XSD schemas that UML-to-XSD transformation generates do not display attributes that contain default values. For example, consider two XML attributes named attributeFormDefault and elementFormDefault, whose values in this sample are set to the default value of "unqualified". If you run the UML-to-XSD transformation, the transformation results changes when you run it with the transformation extension that this sample provides, which is named com.ibm.xtools.transform.uml2.xsd.XSDSchemaDefaultValue:

Feedback