[xsd-users] Public XML schema that works in XJC (Java) but maybe not in CodeSynthesis XSD

Christopher Fuhrman christopher.fuhrman at gmail.com
Wed Mar 25 17:28:01 EDT 2009


Hi,

I'm trying to get CodeSynthesis XSD to work on the following complex schema
for biometrics data interchange. Although these schemas are online at
various URLs, the following ZIP file has correct (relative to the directory)
import URLs for the dependent schemas. The root schema that I am trying to
make work with XSD is called ITL-2007f-Package.xsd and it depends on a bunch
of other schemas that model data used by various government agencies.

http://www.doj.state.wi.us/les/NIST-ITL/Schema_docs_2007f/Package2007f.zip

FYI, we have had success making this schema work with XJC (Java API for XML
Binding, JAXB), so I believe it's a valid XML schema set. We also converted
it to UML using XMLModeling's hyperModel with no errors.

My attempts so far have not been successful. XSD complains that a type '
http://niem.gov/niem/ansi-nist/2.0:FingerprintType' is not found, although
it's clearly defined in one of the included schemas.

This set of schemas has cycles in some of its imports, which apparently is
legal in XML. I tried the advice at
http://www.codesynthesis.com/~boris/blog/2008/02/13/codesynthesis-xsd-3-1-0-released/but
the undefined type problem still exists. I'd be happy to have any
feedback on whether (or how) XSD can work with this to generate C++ code to
parse/write XML.

Cris



More information about the xsd-users mailing list