[xsd-users] problem with polymorphic dynamic cast
Dingelstad, John
john.dingelstad at dhv.com
Wed Jun 30 06:29:14 EDT 2010
Hi,
I've created a small test program, which loads a DATEXII file by means
of tree mapping into memory and through which I would like to retrieve
some info.
Loading of the file (MeasurementSiteTablePublication.xml) seems to be
fine, and I can retreive some basic information as well. However dynamic
casting the polymorphic payloadPublication to the
MeasurementSiteTablePublication fails for a reason I can't explain. The
dynamic_cast returns a pointer with the value 0. When I look in the xml
file however, it clearly states that it is of type
MeasurementSiteTablePublication.
I'll used the option -generetate-polymorphic along with version 3.3.
Any help is appreciated.
Many thanks in advance,
John Dingelstad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DATEXII Parsers.zip
Type: application/x-zip-compressed
Size: 296452 bytes
Desc: DATEXII Parsers.zip
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20100630/54ef5509/DATEXIIParsers-0001.bin
More information about the xsd-users
mailing list