recentpopularlog in

therobyouknow : fetch   3

How do I keep the DTD from loading? Even when I turn off validation the parser tries to load the DTD file.
This shows how to stop the JDOM XML parser from attempting to connect to the internet to fetch a DTD from w3c.org to use to validate the XML as it is being input into the parser. In other words it makes the parser non-validating. A non-validating parser i
dtd  java  xml  non-validating  nonvalidating  non  validating  non-external  w3c  fetch  option  external  load  load-external-dtd  feature  disable  prevent  stop  configure  configuration  jdom  dom  parser  apache  set  setup  howto  idea  solution  standalone 
january 2008 by therobyouknow
How to turn off fetching a DTD from the internet/remote network (e.g. at the w3c) when parsing xml using sax
public org.xml.sax.InputSource resolveEntity(java.lang.String
p1,java.lang.String p2) throws org.xml.sax.SAXException, java.io.IOException
{
return new InputSource("/dtd/empty.dtd");
}
java  sax  xml  dtd  disable  off  override  class  defaulthandler  fetch  internet  parse  inherit  local  network  ignore  doctype  jdom 
december 2007 by therobyouknow

Copy this bookmark:





to read