I\'m trying to use JAXB to unmashall some XML which I used xjc to create in the first place. I don\'t want to do any validation on the unmarshalling, but even though I have
The above suggestions Nothing worked out for me...
Im suggesting this code which worked for me☺️
To remove Dtd from xml ...Used regex
String str = event.getData();
str= str.replaceAll("](?:]>[^<>])>","");