TOC PREV NEXT INDEX


Group


The XSD group type <xsd:group> is used to create a reusable content model group. This is similar in concept to the creation of a standalone type and is handled in the C or C++ language mapping as such. A group declaration is translated into a C type or C++ class definition. This type definition is then used in places where the group is referenced.
The general mapping is as follows:
XSD type:
<xsd:group name="TypeName">
 
   XSD content group definition ..
 
</xsd:group>
 

 
Generated C code:
typedef struct TypeName {
 
   group type definition..
 
} TypeName;
 
 
Generated C++ code:
class TypeName : public OSRTBaseType {
 
   group type definition..
 
} ;
 
 



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