[xsd-users] Fwd: Suspect a Bug in Generic Class generation for C++

Boris Kolpackov boris at codesynthesis.com
Thu Mar 21 08:38:06 EDT 2013


Hi,

subrahmanyam g <subbu.klce at gmail.com> writes:

> Additional A2GTFT element should cause a error at run time. But our
> codesynthesis method is allowing the above xml & moreoever its not 
> using the second element. (considering the first element)

This is probably because you have XML Schema validation disabled. Enable
it and the XML will be validated against the schema and you will get
an error.

For more information, see Section 5.1, "XML Schema Validation and Searching"
in the C++/Tree Mapping Getting Started Guide:

http://www.codesynthesis.com/projects/xsd/documentation/cxx/tree/guide/#5.1

Boris



More information about the xsd-users mailing list