Hi Team, Currently I am using the below 3 jars for XML reading , writing and transferring XSLT to HTML conversion.
* xalan.jar * xerces.jar * xercesImpl.jar In the code I have added the below XMLConstants. TransformerFactory tf = TransformerFactory.newInstance(); tf.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, ""); tf.setAttribute(XMLConstants.ACCESS_EXTERNAL_STYLESHEET, ""); After adding I am facing below error. Exception in thread "main" java.lang.IllegalArgumentException: Not supported: http://javax.xml.XMLConstants/property/accessExternalDTD at org.apache.xalan.processor.TransformerFactoryImpl.setAttribute(TransformerFactoryImpl.java:571) Case 1: So I have gone through the internet and updated xerces.jar,xercesImpl.jar with xerces-xercesImpl-2.11.jar Now I have these below jars in my project. * xerces-xercesImpl-2.11 * xalan.jar Again I have run the same code I am getting same error. If I remove the xalan.jar from the lib it is working fine. Case 2: And if I update the xalan-2.7.2.jar also I am getting same error like above. * xerces-xercesImpl-2.11 * xalan-2.7.2 Could you please clarify on the below 1. Is there any relation between xerces-xercesImpl -2.11 and xalan jars? 1. I am using java_8.0_202 version is there anything referring in the java? 1. can I remove the xalan jar from the whole project? Any help will be much appreciated. Thanks in advance. Please let me know if you need any further inputs. Thanks & Regards, Vivek.