With Xerces version 1.4.0, you must use xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" instead of xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" (Note the "2001" instead of "2000/10").
Since you said this works with version 1.3.1, that is a likely culprit. Mary Ryan Space Telescope Science Institute [EMAIL PROTECTED] "Langer, Raik 1675 T-CIP" wrote: > > Hi, > > I want to validate an XML file that uses an XML Schema located on my disk. > The XML file has the following namespace and location entries: > > xmlns="http://www.CIP4.org/JDFSchema_1" > xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" > xsi:schemaLocation="http://www.CIP4.org/JDFSchema_1 file:///f:/JDFa_2.xsd" > > When I try to validate this XML file with Xerces 1.4.0 I get the following > error message: > "org.xml.sax.SAXParseException: General Schema Error: Grammar with uri 2: > http://www.CIP4.org/JDFSchema_1 , can not be found." > > Why ??? It works with Xerces 1.3.1. > Note: > The XMLSchema JDFa_2.xsd is available under > http://www.CIP4.org/JDFSchema_1/JDFa_2.xsd but only via user login (so a > parser won't be able to load it from there). > > Regards, > Raik Langer > Heidelberger Druckmaschinen AG > mailto:[EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
