Hi,

 

I’m trying to use Xerces to validate an XML document that references an external schema .XSD.  The .XSD file name contains blanks in the name, and this seems to be causing Xerces to be unable to open the schema document.  

 

Whenever I try to run my app it results in the error
”Fa
iled to read schema document 'Tradacoms CORHDR 6.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

 

 

The reference within the XML document is:

<?xml version="1.0" encoding="UTF-8" ?><CORHDR_6 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Tradacoms CORHDR 6.xsd">

 

If I replace the spaces with another character (ie underscore) and rename the .XSD file accordingly then everything works OK.  Is this a bug /  feature of Xerces, or is there something I can do to workaround this?

 

I’d really appreciate any guidance you can give me with this.

 

Best regards,

 

Nigel Kibble.

 

Reply via email to