este es el codigo donde levanta la exception
Código:
espero puedan ayudarme, saludos System.out.println("validarXmlvsXsd: " + xml + " - " + xsd); String schemaLang = "http://www.w3.org/2001/XMLSchema"; SchemaFactory jaxp = SchemaFactory.newInstance(schemaLang); StreamSource st = new StreamSource(xsd); /******************************************/ Schema schema = jaxp.newSchema(st); //aqui es donde me levanta la exception /***********************************************/ Validator validator = schema.newValidator(); SAXResult sax = new SAXResult(); SAXSource source = new SAXSource(new InputSource(xml)); validator.validate(source, sax); System.out.println("Validation Succefull!!! " );