You can use the UML-to-XSD or
UML-to-XSD (Deprecated) transformations to transform a UML model into
an Extensible Markup Language (XML) Schema Definition (XSD) file.
A schema definition is a description of the structure of an XML file,
which you can use to validate the structure of an XML file.
About this task
XML Schema Definitions, or schemas, are files that have
.xsd as a file name extension.