4

Running xmllint on the gml 3.1.1 schema fails, even though the release notes claim that this release was created to get the schema to validate using 'common tools'. There's questions about this on the web, but no satisfying answers.

xmllint --schema http://schemas.opengis.net/gml/3.1.1/base/gml.xsd \
        --noout foo.xml

returns something like:

element complexType: Schemas parser error : local list type: A type, derived by list or union, must have the simple ur-type definition as base type

This is not the same problem as the one described here, which was a Xerces C++ issue.

If there is some other xmllint issue here, what xml validator is known to work with GML?

I have this problem on a few different flavors of Ubuntu, CentOS, and RHEL 5.x

Update:

The 3.1.1 and 2.1.2 GML schemas validate using the following tools:

  1. The W3C XML Schema Validator
  2. Sun's msv:

    running java -jar msv.jar -warning gml\base\gml.xsd

    returned 1 warning about "anyType" in gmlBase.

  3. Using the validator bundled in eclipse worked with no errors or warnings.

closed as off-topic by Mapperz Aug 18 '16 at 20:07

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions relating to general Information Technology, with no clear GIS component, are off-topic here, but can be researched/asked at Stack Overflow (software development), Super User (computing hardware and software) and Database Administrators (relational databases)" – Mapperz
If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.