Check http://java.sun.com/javase/6/docs/api/org/xml/sax/EntityResolver.html
On Tue, 2008-01-29 at 21:01 +0800, Boon Aik Chew wrote: > Little bit off topic, how do I disable transformer from loading remote > DTD to do validation? > > > DOMSource domSource = new DOMSource(doc); > StreamResult streamResult = new StreamResult(result); > TransformerFactory transformerFactory = TransformerFactory.newInstance(); > Transformer serializer = transformerFactory.newTransformer(); > serializer.transform(domSource, streamResult); > > When this executes, it will load the DTD file remotely. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
