title: Camel validation error message
body: <p>I have the following route in Camel</p>
  
  <pre><code>&lt;route&gt;
      &lt;from uri="target/in"/&gt;
      &lt;doTry&gt; 
          &lt;to uri="validator:schema.xsd"/&gt;
          &lt;to uri="file:target/messages/validation/valid?fileName=a.xml"/&gt;
          &lt;doCatch&gt; 
              &lt;exception&gt;org.apache.camel.ValidationException&lt;/exception&gt;             
              &lt;to uri="file:target/messages/validation/invalid?fileName=a.xml"/&gt;
         &lt;/doCatch&gt;
      &lt;/doTry&gt; 
  &lt;/route&gt;
  </code></pre>
  
  <p>I want to get the error message when the XML file does not pass the validation like in this post</p>
  
  <p><a href="http://camel.465427.n5.nabble.com/XML-Validation-getting-to-the-error-messages-using-Camel-td4768229.html" rel="nofollow">http://camel.465427.n5.nabble.com/XML-Validation-getting-to-the-error-messages-using-Camel-td4768229.html</a></p>
  
  <p>But how do I do that in Spring DSL?</p>