HOPEX UML : HOPEX XML Schemas : Creating an XML Schema : References : Referencing an Element (XML Schema)
   
Referencing an Element (XML Schema)
It is possible to define an element in the schema. This element can then be referenced within a tag definition. The purpose is to avoid redundant definitions. In this way, we can for example define a "comment" element at schema level and reuse this element in the different schema tag definitions.
To reference an element in the schema editor:
1. Select the element in the navigator.
2. In the right part of the editor, select the References tab.
3. Select Referenced element and click the Connect button.
4. Query the element to be referenced and click OK.
UML modeling
To reference an element from a class diagram:
1. Select View > Views and Details and select the Schema check box.
2. In the objects tool bar, click the Link button
3. In the diagram, click the referencing role and connect it to the referenced role.
4. A dialog box will ask you to select the type of link you wish to create. Select Referenced element and click OK.
See also:
*"Referencing an Attribute (XML Schema)"
*"Referencing a Group (XML Schema)"