On the design maintenance screen of the ES Builder, create a data type in your namespace (see also: Creating an Object).
Choose the Type Definition tab page. The XSD editor automatically selects the category Simple Type when you create a data type.
To insert a subnode, call the context menu for the root element and in the (Insert) menu, choose either Insert Subelement or Insert Lines. This is only possible if the root element has not yet been assigned a type.
Note
If a type is already entered in the Type column, you can delete it by choosing (Reset) in the list box for the cell.
The type then automatically changes to Complex Type. Using the context menu, insert further elements and attributes to build up the structure of your new complex type. Note the following:
Unlike elements, attributes cannot have subnodes. Therefore, you can build up structures using elements, but you use attributes to specify additional information for an element in a message. More information: Data Types in the Enterprise Services Repository (Elements and Attributes section).
Subelements can only be inserted for elements that do not have a type.
If a single substructure becomes too complicated, you are recommended to use multiple smaller data types instead, especially when these can then be used elsewhere. To reference other data types, choose Data Types in the list box for the Type column.
To define the elements of the simple data type in the Details column, choose F4.
Note
Before you can use a facet, you must have selected a built-in data type in the Type column for your simple data type, element, or attribute. Otherwise the input field in the Details column remains locked. More information: XSD Editor for Freely-Modeled Data Types
As long as the element concerned is not the root element, you can change the field name by clicking it.