Posted By

studioevoque on 06/29/11


Tagged

xml


Versions (?)

Disable loading of external DTD in SAXParser


 / Published in: Java
 

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

  1. SAXParserFactory spf = SAXParserFactory.newInstance()
  2. spf.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);

Report this snippet  

You need to login to post a comment.