[oXygen-user] How do I switch off validation of XSDs that are called by an XML document instance [SEC=UNCLASSIFIED]

George Cristian Bina
Thu Feb 12 01:51:41 CST 2009


Hi John,

Putting the local schemas in the schema location attribute, like below:

xsi:schemaLocation="http://www.opengis.net/gml gml3.2.0/gml/gml.xsd
    http://www.w3.org/1999/xlink gml3.2.0/xlink/xlinks.xsd
    urn:x-ogp:spec:schema-xsd:EPSG:0.1:dataset gml3.2.0/EPSG.xsd">

I get the file reported valid without any errors.

Now, a couple of observations:

- your archive contains gml 3.2.0 while your instance refers to gml 
3.2.1, see the initial schemaLocation:

xsi:schemaLocation="http://www.opengis.net/gml 
http://www.isotc211.org/2005/gml.3.2.1/gml.xsd
    http://www.w3.org/1999/xlink 
http://www.isotc211.org/2005/gml.3.2.1/xlink/xlinks.xsd
    urn:x-ogp:spec:schema-xsd:EPSG:0.1:dataset 
urn:x-ogp:spec:schema-xsd:EPSG:0.1:dataset">

- the remote schemas at the locations in your original file do not 
exist, or at least I cannot access them, I get a 404 not found HTTP error.

- you do not have a location specified for the last schema, so I assume 
you also have a catalog that maps that to a location?

Best Regards,
George
-- 
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

 wrote:
> Hi Sorin,
> 
> Thanks for your prompt reply.
> 
> A long time ago I asked how to validate a whole set of XSDs.  The response indicated that I should: open a project, import folders (containing the XSDs) into the project, right click on the folder (holding the XSDs) and validate selection.
> 
> This is what I did with the XSDs that I am using to validate the huge XML document instance. The validation errors from above only relate to readme files in the directories.  Therefore, I assume that the XSDs are valid. I even removed the readme files and the validation still works.
> 
> I have tarred and gzipped the XSDs that I am dealing with. You can download them from: http://asdd.ga.gov.au/asdd/work/epsgSchemas.tar.gz
> 
> I then validate the huge XML document instance that is supposed to be valid according to the above mentioned XSDs.  When I do this there are thousands of errors related to the XSDs mentioned above and within the document.
> 
> The huge file that I am trying to validate is available at http://asdd.ga.gov.au/asdd/work/GmlDictionaryMetadata.xml
> 
> Thanks.
> 
> 
> John
> 
>> -----Original Message-----
>> From: 
>> [mailto:] On Behalf Of Sorin Ristache
>> Sent: Wednesday, 11 February 2009 7:03 PM
>> To: 
>> Subject: Re: [oXygen-user] How do I switch off validation of
>> XSDs that are called by an XML document instance [SEC=UNCLASSIFIED]
>>
>>
>> Hello,
>>
>> The XML Schema is validated implicitly when an XML file is validated
>> against that schema. You cannot disable that with a preference. If the
>> XML Schema is valid then the validation errors are in the XML file.
>> Please send some sample files to see if the schema or the XML file is
>> not valid.
>>
>>
>> Regards,
>> Sorin
>>
>>
>>  wrote:
>>> Hi,
>>>
>>> I have an XML document instance and when I validate it
>> against and XSD, Oxygen 10.0 validates the XSD?  I have been
>> told by so called experts that the XSDs are valid but I keep
>> on getting the errors.  What preferences do I set to validate
>> the XML document instance and not the relevant XSDs?
>>> Thanks.
>> _______________________________________________
>> oXygen-user mailing list
>> 
>> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>>
> _______________________________________________
> oXygen-user mailing list
> 
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user



More information about the oXygen-user mailing list