TOC PREV NEXT INDEX


C Code Generated for XSD Global Elements


At the end of the header file are the function prototypes corresponding to global elements that are not referenced by any other type definitions. These are global elements that are not used in any other type definitions via the ref attribute (for example, <complexType name="SomeType" ref="SomeGlobalElement"/>). A sample global element section is as follows:

/**
 
 * Global element functions.  These functions encode or 
 
 * decode complete XML documents.  They are generated for global 
 
 * elements that are either:
 
 *
 
 * 1) not referenced by any other types, or
 
 * 2) explicitly declared to be a PDU using the -pdu command line
 
 *    option, or
 
 * 3) explicitly declared to be a PDU using the <isPDU/> 
 
 *    configuration file element.
 
 */
 
EXTERN int XmlE_personnelRecord
 
  (OSCTXT* pctxt, PersonnelRecord* pvalue);
 

 
EXTERN int XmlD_personnelRecord
 
  (OSCTXT* pctxt, PersonnelRecord* pvalue);
 

In this case, the global element function prototypes correspond to the following global element declaration in the XSD file:

 
   <xsd:element name="personnelRecord" type="PersonnelRecord"/>
 

 
This element is not referenced by any other types in the specification. Encode and decode function prototypes are generated for the declaration. See the section on Calling Generated C Encode and Decode Functions for a step-by-step description on how to call these functions.

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