Chapter 8. Generated C++ Class Methods

Table of Contents

Preparing C++ Objects for Encoding
Generated XML C++ Encode Methods
Generated XML C++ Decode Methods
Generated XML C++ Validation Methods

XBinder generates C++ classes for all types and global elements defined in an XML schema. Each class generated for a global element contains the main encode or decode methods required to serialize data to and from XML class member variables. Methods generated for types are used by the global element methods to accomplish the complete encoding or decoding of an XML document for the given element. Methods are also generated to help users construct and populate the generated type classes.

The following sections describe procedures for using the XBinder generated C++ framework to encode and decode XML data.