* @param xmlSchemaURL - the schema URL
* @param errorHandler - the error handler
* @return true if the document fragment is valid, false otherwise
*/
public boolean validateDocument(Document document, URL xmlSchemaURL, ErrorHandler errorHandler) throws XMLPlatformException {
XMLSchema xmlSchema = null;
XSDValidator validator = null;
try {
Object[] args = { xmlSchemaURL };
xmlSchema = (XMLSchema)buildSchemaMethod.invoke(new XSDBuilder(), args);
validator = new XSDValidator();