TOC PREV NEXT INDEX


Restrictions


Simple content restrictions are used to restrict the simple content and/or attributes of a complex type. As of XBinder version 1.2, restricted types are handled by generating a completely new type definition containing only the restricted items. In previous versions, the generated type contained only a single base element that referenced the base type.
The general mapping is as follows:
XSD type:
<xsd:complexType name="TypeName">
 
   <xsd:simpleContent>
 
      <xsd:restriction base="BaseType">
 
         ...
 
      </xsd:restriction>
 
   </xsd:simpleContent>
 
</xsd:complexType>
 

 
Generated C code:
typedef BaseType TypeName;
 
 
Generated C++ code:
typedef BaseType TypeName;
 
 



Copyright © Objective Systems 2002-2008
This document may be distributed in any form, electronic or otherwise, provided that it is distributed in its entirety and that the copyright and this notice are included.

Objective Systems, Inc.

55 Dowlin Forge Road
Exton, Pennsylvania 19341
http://www.obj-sys.com
Phone: (484) 875-9841
Toll-free: (877) 307-6855 (US only)
Fax: (484) 875-9830
info@obj-sys.com

TOC PREV NEXT INDEX