I'm using JAXP 1.2 and the latest Xerces-J (2.2.1).  I have:

factory.setValidating(false);

Where factory is my DocumentBuilderFactory.  However, the XML file does
have a !DOCTYPE header containing a reference to a DTD, and
standalone=no.  The parser seems to try to find this DTD, even though I
don't want it to validate.  And when it can't find it, I get a "no
protocol: //somedtd.dtd" error.  How can I prevent this?

My application will use XML files generated by another app which
includes a local DTD reference.  However, my app may or may not be run
on the same computer as that DTD, so I don't want it to look for it (but
I can't alter how that app writes its XML files).  I hope this is
somewhat clear.  Thanks for any help.

Scott




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to