Maps to a UML Package with the stereotype XSDnamespace. To define the “xmlns” attribute in the schema file, you must add Permission between the XSDnamespace package and XSDschema class into the model.
- The Permission name maps to the namespace shortcut.
XML representation of the skeleton of a schema
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.com/example">
…
</xs:schema>
To generate these namespaces
- The UML model must have a Package with the name http://www.w3.org/2001/XMLSchema
- The UML model must have a Package with the name http://www.example.com/example
- Permission with the name “xs” must be added into the model between the XMLSchema Class and the Package http://www.w3.org/2001/XMLSchema
- Permission without a name must be added into the model between the XMLSchema Class and the Package http://www.w3.org/2001/XMLSchema