Defining a Namespace
Before building an XML schema, you should first define the namespace, which will serve as a "workspace" for the user. When the namespace has been created, you can then open the XML schema editor.
Example:
In the "Library" namespace there can be only one "Book" tag, but it can be reused as many times as required.
The advantage of defining a namespace is that types created in the namespace can be reused in another namespace.

The types are then prefixed by their namespace name, to avoid collisions when they are imported into another namespace.
In HOPEX UML, namespaces are represented by packages.
To create a namespace:
1. Click the Main Objects window of the main navigator in the HOPEX bar.
2. Right-click Package.
3. Select New> Package.
4. In the dialog box that appears, enter the name of the future namespace and click OK.
A new package is created in the list of packages.
5. Select Properties in the pop-up menu of the new package.
The properties dialog box for the package appears.
6. In the Characteristics tab, in the Stereotype field, select “XML Document Definition”.
7. Click OK.
The namespace is created in the list of packages:
You can now open the schema editor.