Failed to validate gml.xsd (v3.2.1.1 ) in XMLSpy
Hi.
I have trouble opening gml.xsd in XMLSpy. It seems to be a problem with namespaces. XMLSpy complaints that the dynamicFeature.xsd is not valid.
Another element with name "gml:dataSource" already exists in this or in one of included/imported schemas!
According to this another of the imported xsd's in the gml.xsd is using the same element name (dataSource) without using another name space.
I am currently trying out the gml-3.2.1.1 version.
Please advice. Should I use another version? Will this be fixed?
Best Regards,
Tomas

Hello Tomas. This is likely
Hello Tomas.
This is likely caused by XMLSpy downloading the same schema file twice, from two different locations. One time it uses your local files (you downloaded the schemas zip file, correct?) and the other time it automatically retrieves the online file as this is where the online iso 19139 schemas point to (which itself is pointed to from within the local gml schema).
Try setting your CustomCatalog.xml in the xmlspy install folder to the following (if the file does not exist, create it):
Make sure that the rewriteSystem/rewritePrefix points to the folder where you unzipped the OGC schemas zip file to.
This should reroute every request to an online OGC schema file to the local file - and XMLSpy will no longer load the same schema definition twice from two different schema files.
Check if the RootCatalog.xml in your xmlspy install folder has an entry that points to the custom catalog, like this:
<!-- ... other 'nextCatalog' entries ... -->Then restart xmlspy (I think this is needed for every change to the custom catalog to take effect).
Try to validate gml/3.2.1/gml.xsd again - do you still get the same error?
Best,
Johannes
Hi. I didn't see this before
Hi. I didn't see this before today when I got a message from the OGC asking if I ever got an answer to this question. Thank you very much. This is probably what's causing it. However I didn't manage to follow your steps completely. You refer to changing RootCatalog.xml and when you are to explain what to do there are three empty lines. Did some of the text disappear here? i have no RootCatalog.xml file in my XMLSpy folder and the CustomCatalog.xml looks like this:
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:entity:xmlns:xml:catalogCatalog.xsd"
Could you please explain again what to modify? Thanks
Tomas, Here is a link to the
Tomas,
Here is a link to the manual page for setup of OASIS Catalogs in XMLSpy.
http://manual.altova.com/XMLSpy/spyenterprise/xsdtdandxsd_catalogs.htm
You may add a new line in the RootCatalog.xml file. It should be a nextCatalog element referencing your custom catalog.
<catalog ... >
...
<nextCatalog catalog="%PersonalFolder%/Altova/%AppAndVersionName%/CustomCatalog.xml"/>
...
</catalog>
The contents of your custom catalog file could be from
http://www.ogcnetwork.net/schemas/example-catalog.xml