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-factory
andresult-factory
, there will be just need to provide your onw implementation for them, e.g. based on exisitingDomSourceFactory
andDomResultFactory
, respectivally, and inject that code there in the constructor.Of course you can inject
DocumentBuilderFactory
to thatDomSourceFactory
andDomResultFactory
, but you should write some customFactoryBean<DocumentBuilderFactory>
to initializeDocumentBuilderFactory
in itsgetObject()
.