SimpleContent
The XSD simpleContent type <xsd:simpleContent> is used to create a modified version of a base type through extension or restriction mechanisms. It is similar in concept to creating derived types in Java or C++. The simpleContent type is converted into a C structured type containing a base element (_base) and, optionally, additional attributes specified through the extension mechanism.
For C++, a derived class is created that extends the class generated for the base type. The exception to this rule is if the type being extended is a simple atomic type such as an integer. In this case, the class generated is derived from the default base class type (OSRTBaseType) and a member variable called value is added for the simple built-in type.
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 |