Thanks, but it turns out that I can disable it completely as well.
http://www.theserverside.com/discussions/thread.tss?thread_id=46839

On Jan 29, 2008 9:18 PM, Martin Grigorov <[EMAIL PROTECTED]> wrote:
>
> 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]
>
>

Reply via email to