Disable loading of external DTD in SAXParser


/ Published in: Java
Save to your folder(s)



Copy this code and paste it in your HTML
  1. SAXParserFactory spf = SAXParserFactory.newInstance()
  2. spf.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);

URL: http://www.isocra.com/2006/05/making-xerces-ignore-a-dtd

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.