Hi Tim,

Tim Carpenter <[EMAIL PROTECTED]> wrote on 02/08/2007 09:50:34 PM:

> Update:
> 
> I have managed to beat the system into finding my xsd file by using 
> the following:
> 
> urlStr = new String("my-schema.xsd"); // file is  local to the 
> APPLICATION not to the source files.
> File xmlFile = new File(urlStr);
> FileReader xmlfr = new FileReader(xmlFile);
> InputSource inputSource = new InputSource(xmlfr);
> parser.parse(inputSource);
> 
> Unfortunately, my schema, that begins with:
> 
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
> elementFormDefault="qualified">
> 
> throws out the following when validating...
> 
> SEVERE: cvc-elt.1: Cannot find the declaration of element 
> 'xs:schema'. at line number 2
> 
> Now, this works fine on another machine. The erroneous machine is 
> being accessed via FTP over the net, so it is a net-visible unit. It 
> appears not to be able to accurately locate the w3 definition...most 
> odd.
> 
> Any ideas on this or improvements to how I am getting access to my 
> schema?

Given the error message, it looks like you're trying to validate your 
schema document instead of the instance document. Is that what you really 
intended to do?
 
> Tim
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to