TOC PREV NEXT INDEX


Static Case (length restricted to 32K or less):


XSD type:
<xsd:simpleType name="TypeName">
 
   <xsd:restriction base="xsd:hexBinary">
 
      <xsd:length value="length"/>
 
   </xsd:restriction>
 
</xsd:simpleType>
 
 
Generated C code:
typedef struct TypeName {
 
   OSUINT32		 numocts;
 
   OSOCTET		data[length];
 
} TypeName;
 

 
Generated C++ code:
class TypeName : public OSBaseType {
 
   OSUINT32		 numocts;
 
   OSOCTET		data[length];
 
   ...
 
} ;
 


Note: in the static case, the maxLength facet will cause the same code to be generated with maxLength used for the size of the array.


Copyright © Objective Systems 2002-2005
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.
102 Pickering Way, Suite #506
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