camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Disable DTD validation on XPATH
Date Thu, 10 Apr 2014 13:18:48 GMT
Hi

What Camel version are you using?

I think the DTD validation has been turned off out of the box in the
latest releases.


On Thu, Apr 10, 2014 at 1:05 PM, Ayache Khettar
<ayache.khettar@googlemail.com> wrote:
> Hi
>
> We get XML from third party API which has Doctype declaration (<!DOCTYPE
> x_request SYSTEM "https://hostname/dtd/xrequest.dtd">). When XPATH is
> invoked it tries to download schema which requires SSL connection and fails
> with 403 error code (authentication error). How do we stop Xpath  or
> SaxParser validating the XML.?
>
> I am aware that programmatically we can set it this way: I am using
> blueprint DSL, wondering how to set the below feature?
>
> saxfac.setFeature("
> http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
>
>
> Regards,
>
> akhettar



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message