Cheers, I tried xerces 2.9 and now it works! Thx P.S. I had http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation and file:/C:/mask.xsd
already in my code. It got lost while i was formatting here in the posting box, because of some linebreaks. What a shame posted it twice false =) What a luck i use fop and fop likes xerces 2.9. Michael Glavassevich wrote: > > And try specifying the correct property name. It's > "http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation" > not > "http://apache.org/xml/properties/schema/externalnoNamespaceSchemaLocation > ". Note the hyphen. > > Also make sure you're using a recent release like 2.9.0. Xerces 2.6.2 > (which I assume you're using since there never was and likely never will > be a 2.7.2) had a bug which would prevent this from working if you reuse > the parser. > > Michael Glavassevich > XML Parser Development > IBM Toronto Lab > E-mail: [EMAIL PROTECTED] > E-mail: [EMAIL PROTECTED] > > Jacob Kjome <[EMAIL PROTECTED]> wrote on 02/26/2007 02:33:30 PM: > >> Try using a valid URL... >> >> file:/C:/mask.xsd >> OR >> file:///C:/mask.xsd >> >> >> Jake >> >> Quoting Cheffe <[EMAIL PROTECTED]>: >> >> > >> > Hi folks, >> > I have this code under 1.4.2_10: >> > ... >> > SAXBuilder builder = new > SAXBuilder("org.apache.xerces.parsers.SAXParser"); >> > builder.setValidation(true); >> > builder.setFeature("http://apache.org/xml/features/validation/schema", >> > true); >> > >> builder.setProperty("http://apache. >> org/xml/properties/schema/externalnoNamespaceSchemaLocation", >> > "file:C://mask.xsd"); >> > ... >> > >> > The validation is doing correct! All fine. >> > >> > But when i am starting with the endorsed option to override the > xerces.jar >> > and ..impl.jar etc., i get the following Errror: >> > Error on line 2: cvc-elt.1: Cannot find the declaration of element > 'mask'. >> > >> > It seems the mask.xsd couldnt be found? Or the Classloader() is > mixxing up >> > the different xerces-versions. >> > >> > Any suggestions? >> > >> > >> > >> > -- >> > View this message in context: >> > >> http://www.nabble.com/1.4.x-%2Cendorsed-%2Cxerces2.7.2-%2Cschema- >> validation-problem-tf3294246.html#a9163242 >> > Sent from the Xerces - J - Users mailing list archive at Nabble.com. >> > >> > >> > --------------------------------------------------------------------- >> > 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] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/1.4.x-%2Cendorsed-%2Cxerces2.7.2-%2Cschema-validation-problem-tf3294246.html#a9178166 Sent from the Xerces - J - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]