This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I'm using Java 6. I have this code for turning a well-formed XML string (derived from an XHTML doc) into a org.w3c.dom.Document ...
I thought the line, "factory.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);" would tell the parser to ignore entities it cannot resolve, but I still get the exception
Is there a way to tell the parser to ignore entities it cannot resolve? I would prefer not to create my own custom entity resolver or alter the HTML, but if there is no other way, then so be it.