
C Code Generated for XSD Types
- Choice tag constants (xsd:choice type only)
- C type definition
- Encode function prototype
- Initialization function prototype
- Other function prototypes depending on selected options (for example, print)
/**************************************************************/ /* */ /* Name */ /* */ /**************************************************************/ typedef struct EXTERN Name { OSXMLSTRING givenName; OSXMLSTRING initial; OSXMLSTRING familyName; } Name; EXTERN int XmlET_Name (OSCTXT* pctxt, Name* pvalue, const OSUTF8CHAR* elemName, const OSUTF8CHAR* nsPrefix); EXTERN int Init_Name (OSCTXT* pctxt, Name* pvalue); EXTERN void Print_Name (const char* name, Name* pvalue);<xsd:complexType name="Name"> <xsd:sequence> <xsd:element name="givenName" type="xsd:string"/> <xsd:element name="initial" type="xsd:string"/> <xsd:element name="familyName" type="xsd:string"/> </xsd:sequence> </xsd:complexType>The XmlET_Name function prototype is the XML encode function for the type. The type has no decode function because decoding is handled by SAX handler functions.
| 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 |