The Generate XML Schema feature forward engineers a UML Class model to a W3C XML Schema (XSD) file. An XML schema corresponds to a UML package in Enterprise Architect, therefore XML schema generation is a package-level operation. To generate an XML schema from a package, follow the steps below :
| 1. | In the Project Browser window, right-click on the package to be converted to XSD. The context menu displays. |
| 2. | Select the menu option. |
| 3. | In the field, set the required output file. |
| 4. | In the field, set the required XML encoding. |
| 5. | Click on the button to generate the schema. |
| 6. | The progress of the schema generator is shown in the box. |
Tip: The Generate XML Schema dialog can also be accessed from the active diagram by selecting the menu option.