camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Matèrne (jhm) <apa...@materne.de>
Subject AW: Disable DTD validation on XPATH
Date Thu, 10 Apr 2014 12:03:38 GMT
You could try setting the factory like described for Saxon in
https://camel.apache.org/xpath.html#XPath-UsingSaxonwithXPathBuilder
https://camel.apache.org/xpath.html#XPath-EnablingSaxonfromSpringDSL


Jan

> -----Ursprüngliche Nachricht-----
> Von: Ayache Khettar [mailto:ayache.khettar@googlemail.com]
> Gesendet: Donnerstag, 10. April 2014 13:06
> An: users@camel.apache.org
> Betreff: Disable DTD validation on XPATH
> 
> 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-d‌​td",
> false);
> 
> 
> Regards,
> 
> akhettar


Mime
View raw message