Chapter 18 Working with XML


Simple type

In XML-Schema, a simple type can be a string or a decimal built into XML-Schema, it can also be a type derived from those built-in the language. A simple type cannot contain elements or attributes.

In PowerDesigner, you design a simple type using a class with the <<simpleType>> stereotype. You must add an attribute with the <<simpleType>> stereotype to this class.

<xsd:simpleType name="string">
 <xsd:restriction base="string">
 </xsd:restriction>
</xsd:simpleType>

 


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