[xsd-users] parsing multi-xsd files

Qi Gao qi.gao2012 at gmail.com
Tue Nov 6 21:56:32 EST 2012


Boris,
Thanks a lot , I'll try your tips.

--Qi

On Tue, Nov 6, 2012 at 6:10 PM, Boris Kolpackov <boris at codesynthesis.com>wrote:

> 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