Hi there,
We are using SonarQube version 7.9.2 to perform code analysis. I need some help on fixing the “Disable XML external entity (XXE) processing” Issue. The “DocumentBuilderFactory” class which is being used for XML parsing - SonarQube reported the “Disable XML external entity (XXE) processing” issue. Made code changes as suggested by SQ but still the issue persists.
PFB code screenshot. Can someone help with what is wrong in my code?