[xsd-users] Help me: How to find out what is the type of a class

Boris Kolpackov boris at codesynthesis.com
Thu Oct 22 08:44:22 EDT 2009


Hi James,

James Mei <jxmei3 at gmail.com> writes:

> The sample code below works with normal pointer to a class. But when it is a
> TreeNode->Data is "const sequence <tDataSet> &", then the following code
> crashed.

sequence (and other containers) are not derived from xml_schema::type so
this won't work. Only C++ classes corresponding to XML Schema types are
derived from xml_schema::type. If you need to store a pointer to sequence
then you will need to invent your own type information.

Boris



More information about the xsd-users mailing list