In Spring Integration pipeline we currently use the validating filter to validate xml message against a certain xsd schema.
<int-xml:validating-filter schema-location=classpath:/a.xsd />
It works fine when the xml has just one schema. What is the best approach when there are multiple schemas against which the xml should be validated?
E.g.
<Data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn1" xsi:schemaLocation="urn1 urn1.xsd">
<Hdr>
</Hdr>
<Pyld>
<Document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn2" xsi:schemaLocation="urn2 urn2.xsd">
</Document>
</Pyld>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…