[xsd-users] Problem for parsing CityGML using xsd v4.1.0.a11

Boris Kolpackov boris at codesynthesis.com
Wed Dec 8 02:16:45 EST 2021


Miao Wang <miaowang.tw at gmail.com> writes:

> Using XSD 3.3.0 and following the instructions of the link, all works fine.
> But when I  change to use XSD 4.1.0.a11 to generate c++ code, the
> <bldg:Building> tag cannot be find correctly and thus got nothing in
> <cityObjectMember>.
> This maybe the same problem with the link:
> https://www.codesynthesis.com/pipermail/xsd-users/2017-November/004946.html

It does look similar but unfortunately the original reporter didn't
try to get to the bottom of the issue.

Seeing that you have both working and non-working builds available,
can you try to step through the relevant parsing code with the debugger
and see where things differ? My hunch is that this has something to
do with polymorphism/substitution groups. One related thing worth
checking is that the --generate-polymorphic and --polymorphic-type*
options (and potentially --export-maps, if the generated code is
split into DLLs) present and make sense.



More information about the xsd-users mailing list