General

Table of contents


Data Explorer

XSDError: Loaded schema file is invalid

You may encountering the following error (or similar) on opening .gml, .cnd, std or .prj files in the Data Explorer or file conversion tools (e.g. OGSFileConverter):

Error message:

Error XSDError in http://www.opengeosys.org/images/xsd/OpenGeoSysCND.xsd, at line 1, column 1: Start tag expected.
Error XSDError in file:///../bc/well.cnd, at line 5, column 195: Loaded schema file is invalid.
XMLInterface::isValid() - XML File is invalid (in reference to schema ./OpenGeoSysCND.xsd).
Error XSDError in http://www.opengeosys.org/images/xsd/OpenGeoSysCND.xsd, at line 1, column 1: Start tag expected.

Solution:

Open the affected file (e.g. well.cnd in this case) in a text editor and remove the following parameter of the XML root element (the first element in < >-brackets in the element, e.g. <OpenGeoSysCND>):

xsi:noNamespaceSchemaLocation="http://www.opengeosys.org/images/xsd/OpenGeoSysXXX.xsd"

where XXX can be CND, GLI, PRJ or STN depending on the file type.

Now the save the modified file and try to load it again.


This article was written by Lars Bilke. If you are missing something or you find an error please let us know. Generated with Hugo 0.64.1. Last revision: April 9, 2019
Commit: [web] Added instructions on prj-file checking with xmllint. be566f601  | Edit this page on