[xsd-users] Error report for XSD-4.0

Boris Kolpackov boris at codesynthesis.com
Fri Aug 15 04:16:37 EDT 2014


Hi Alexander,

alexander.gosling at kongsberg.com <alexander.gosling at kongsberg.com> writes:

> 1. libxsd\xsd\cxx\tree\serialization.txx does not compile in our environment.
> I had to change line 104 from
>           DOMDocument& doc (*e.getOwnerDocument ());
> to
>           ::xercesc::DOMDocument& doc (*e.getOwnerDocument ());
> which I suppose is exactly the same declaration, only a little bit more 
> specific.

That's very strange. We have tested 4.0.0 with VC 2012 and this code was
definitely compiled without any errors. Could you open the 'library'
example and try to build it, to see if you get the same error?


> 2. For a number of schemas from opengis.org, the include statement to 
>    xml.h is wrong in the generated code
>
> The include statement generated with 4.0 is:
>         #include <Jade/OpenGIS/regrep/3.0/e:\work\jsmoms\jade\jadeopengis\schemas\xml\xml.h>
> while generated with 3.3.0 it is:
>         #include <Jade/OpenGIS/xml/xml.h>
>
> The generation is done with exactly the same command line. 

I just tried your example and both XSD 4.0.0 and XSD 3.3.0 generate the
same #include for this command line:

xsd cxx-tree --location-map http://www.w3.org/2001/xml.xsd=/tmp/xml.xsd --output-dir /tmp rim.xsd

I.e., they both have '#include "/tmp/xml.hxx"'.

My guess is that you have some --include-regex options (perhaps in the
.options files not shown?) that translate such paths and that don't work
the same in XSD 4.0.0 for some reason. If you have such options and can
show them, then I could take a look.

Boris



More information about the xsd-users mailing list