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:[email protected]]
> Gesendet: Donnerstag, 10. April 2014 13:06
> An: [email protected]
> 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

Reply via email to