The externalSchemaLocation property must contain a string of the form "namespace1 location-url-1 namespace2 location-url-2 ..."
In that string you must put the namespace/location pairs of all the schemas referred to in the document, with whitespace separating the tokens. Jeff ----- Original Message ----- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 7:02 AM Subject: AW: schema validation Hello! I use this property! See my code: DOMParser domParser = new DOMParser(); domParser.setFeature("http://xml.org/sax/features/namespaces",true); domParser.setFeature("http://xml.org/sax/features/validation",true); domParser.setFeature("http://apache.org/xml/features/validation/schema",true ); domParser.setFeature("http://apache.org/xml/features/validation/schema-full- checking",true); domParser.setProperty("http://apache.org/xml/properties/schema/external-sche maLocation",SchemaUrl); But there is still an error because of the schema-location in the xml-document! Thomas -----Ursprüngliche Nachricht----- Von: Ankit Pasricha [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 15. September 2004 15:52 An: [EMAIL PROTECTED] Betreff: Re: schema validation See the http://apache.org/xml/properties/schema/external-schemaLocation property details in [1]. Use of this property will allow the schemaLocation entry in the instance document to be ignored. [1] http://xml.apache.org/xerces2-j/properties.html Ankit Pasricha XML Parser Development IBM Toronto Lab 8200 Warden Avenue, Ontario L6G 1C7 Phone: (905) 413 4941 [EMAIL PROTECTED] 09/15/2004 09:25 AM Please respond to [EMAIL PROTECTED] [EMAIL PROTECTED] cc Subjectschema validation Hello! I want to validate a XML-Document against a XML-Scheme. For that purpose I tell the parser wich scheme it should use. Somtimes a xml-document contains the location of the xml-scheme. How can i configure the parser so that the location of the scheme in the xml-document will be ignored? Best regards, Thomas --------------------------------------------------------------------- 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]