It might be worth adding a null resolver (or something like this) to castor.
private static String stripDTD(String xml) { Perl5Util util = new Perl5Util(); return util.substitute("s/\\<\\!DOCTYPE.*?\\>//", xml); }
Thanks again,
Scott
From: Keith Visco <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Download of Remote DTD Date: Tue, 23 Sep 2003 19:00:51 -0500
Scott,
I believe that Xerces has a way to configure this directly, you may need to create the parser instance, configure it, and then pass the Unmarshaller (see #getHandler()) to your parser.
--Keith
Scott Schenksj wrote:
>
> Hello,
>
> I'm writing an application that accepts XML requests from a remote host. If
> this XML contains the "dtd" line, Castor (truly... Xerces) hangs while
> trying to download the DTD (this executes from behind several firewalls).
>
> I tried turning off Validation, but the DTD still tries to download. Does
> anyone know how I might change this behavior?
>
> Many thanks!
>
> Scott
>
> _________________________________________________________________
> Instant message during games with MSN Messenger 6.0. Download it now FREE!
> http://msnmessenger-download.com
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
_________________________________________________________________
Help protect your PC. Get a FREE computer virus scan online from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev