[xsd-users] parsing multi-xsd files
    Boris Kolpackov 
    boris at codesynthesis.com
       
    Tue Nov  6 05:10:41 EST 2012
    
    
  
Hi Qi,
Qi Gao <qi.gao2012 at gmail.com> writes:
> xsdcxx cxx-parser --xml-parser expat --generate-polymorphic
> --generate-print-impl --generate-test-driver --root-element-first ../*.xsd
> 
> Howerver, it seems that the test driver just print very top lines of the
> xml file.
I see you enabled support for polymorphism. The test driver and the
sample implementation don't take this into account so what you most
likely see is the data from the base type but not from derived.
You can "improve" the sample implementation (it is a sample after all)
to support polymorphism as shown in the 'polymorphism' example in the
examples/cxx/parser/ directory.
Boris
    
    
More information about the xsd-users
mailing list