Throws IllegalArguementException when validating XML with schema
posted 9 years ago
I am working on WebServices project which involves JAX-RPC. I am receiving XML document from Service Endpoint . I need to validate this XML against schema (XSD). but when I doing, it throws Illegal Arguement exception.
The error is throwing after the execution of the line factory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");
Following is my code. =============================