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.
The Rogue Wave name and logo are registered trademarks of Rogue Wave Software, and HydraExpress is a trademark of Rogue Wave Software. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.