The XML Schema complexContent element provides the ability to create something very like C++ polymorphism in a schema. HydraExpress handles the ambiguity through the xsi:type attribute required for polymorphic elements in the instance document. For more information on how HydraExpress handles substitutable elements, see Chapter 8, "Mapping XML Schema to C++."
The schema used in this example also demonstrates how you can logically group schema definitions in separate files and then use the include feature to reference them.
© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.