Schemas/GML

From Code Synthesis Wiki

< SchemasRevision as of 13:28, 21 September 2006; view current revision
←Older revision | Newer revision→
Jump to: navigation, search

For the release of XSD 2.3.0 we've fixed the part of the Xerces-C++ bug 1281 that prevented Xerces-C++ schema validator from accepting the GML 3.1.1 schemas. All precompiled binaries of XSD from version 2.3.0 are shipped with this patch. Note that you don't need to patch the version of Xerces-C++ that you are linking to your applications since the bug only affects the validation of schemas (as opposed to the validation of instances against schemas) which is normally disabled.

While with this patch XSD is able to parse GML 3.1.1 successfully, it is still unable to generate compilable C++ code due to a pathological circular dependency between smil20.xsd and smil20-language.xsd. This however is easy to overcome by splitting smil20.xsd into two files. The resulting schemas are semantically equivalent to the original.

The following two packages contain the official GML 3.1.1 schemas placed into a single directory with the smil20.xsd schema split into smil20.xsd and smil20-base.xsd:

We used the following options to compile GML 3.1.1:

  • C++/Tree
--generate-polymorphic --root-element Array --root-element Bag
  • C++/Parser
--morph-anonymous
Personal tools