MSV ComponentThe MSV component performs XML validation of the message body using the MSV Library Note that the Jing component also supports RelaxNG Compact Syntax URI formatmsv:someLocalOrRemoteResource Where someLocalOrRemoteResource is some URL to a local resource on the classpath or a full URL to a remote resource or resource on the file system. For example
ExampleThe following example <camelContext xmlns="http://activemq.apache.org/camel/schema/spring"> <route> <from uri="direct:start"/> <try> <to uri="msv:org/apache/camel/component/validator/msv/schema.rng"/> <to uri="mock:valid"/> <catch> <exception>org.apache.camel.ValidationException</exception> <to uri="mock:invalid"/> </catch> </try> </route> </camelContext> See Also |