Chapter 18 Working with XML


Global element

A global element is declared as a child of the schema element; it can be referenced in one or more declarations. You define an XML-Schema global element using a class with the <<element>> stereotype in PowerDesigner.

You define the type of a global element using the following methods:

<xsd:element name="customer">
 <xsd:complexType>
  <xsd:element name="name" type="int"/>
  <xsd:element name="address" type="int"/>
 </xsd:complexType>
</xsd:element>

<xsd:element name="Customer" type="CustomerListType"/>

 


Copyright (C) 2006. Sybase Inc. All rights reserved.