Hi I am using xerces 2.0 beta, JDK 1.3.1
When I do dynamic Schema validation I get the warning Warning: org.xml.sax.SAXParseException: SchemaLocation: schemaLocation value = 'http://localhost/test.xsd' must have even number of URIs What does it mean. Other than that the code behaves fine Following is the code snippet public static Document validate(InputSource source,String schema) throws SAXException{ try{ DOMParser parser = new DOMParser(); parser.setFeature("http://xml.org/sax/features/validation",true); parser.setFeature("http://xml.org/sax/features/namespaces", true); parser.setFeature("http://apache.org/xml/features/validation/schema",true); parser.setFeature("http://apache.org/xml/features/validation/dynamic", true); parser.setFeature("http://apache.org/xml/features/validation/schema-full-che cking", true); parser.setProperty("http://apache.org/xml/properties/schema/external-schemaL ocation",schema); parser.setErrorHandler(new ErrorHandling()); parser.parse(source); Document doc = parser.getDocument(); Node root = doc.getDocumentElement(); System.out.println("Document name is:" + root.getNodeName()); return doc; } catch (Exception se){ System.out.println("Error message: " + se.getMessage()); se.printStackTrace(); throw new SAXException(se.getMessage()); } } schema parameter is 'http://localhost/test.xsd' Any help is appreciated -Chandra --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
