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"/>
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 RoadExton, 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 |