is there a way to disable DTD validation in an XSLT transformer through XML configuration?
I have a specific response from a client that i don't want to validate (for business reasons)
Can I do this in Spring Integration?
Thanks in advance,
Carl
is there a way to disable DTD validation in an XSLT transformer through XML configuration?
I have a specific response from a client that i don't want to validate (for business reasons)
Can I do this in Spring Integration?
Thanks in advance,
Carl
I found this solution:
(see here TransformerFactory - avoiding network lookups to verify DTDs)
Since we know that
<int-xml:xslt-transformer>supportssource-factoryandresult-factory, there will be just need to provide your onw implementation for them, e.g. based on exisitingDomSourceFactoryandDomResultFactory, respectivally, and inject that code there in the constructor.Of course you can inject
DocumentBuilderFactoryto thatDomSourceFactoryandDomResultFactory, but you should write some customFactoryBean<DocumentBuilderFactory>to initializeDocumentBuilderFactoryin itsgetObject().