title: Business validation in mulesoft
body: <p>I want to do field level validation in mule, i am able do the schema  validation but stuck in field level validation for example first name should be string and not empty and date of birth  should in be in integer format and not empty etc..</p>
  
  <p>I am attaching my sample file , i know there is a component ( validation) which do such type of validation but i have many filed in XML ( here i have attached simple XML file due to security issues),which is basically called business validation.</p>
  
  <p>Kindly help  me how to do such type of validation in mule.</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;x:books xmlns:x="urn:books"&gt;
     &lt;book id="bk001"&gt;
        &lt;author&gt;Writer&lt;/author&gt;
        &lt;title&gt;The First Book&lt;/title&gt;
        &lt;genre&gt;Fiction&lt;/genre&gt;
        &lt;price&gt;44.95&lt;/price&gt;
        &lt;pub_date&gt;2000-10-01&lt;/pub_date&gt;
        &lt;review&gt;An amazing story of nothing.&lt;/review&gt;
     &lt;/book&gt;
  
     &lt;book id="bk002"&gt;
        &lt;author&gt;Poet&lt;/author&gt;
        &lt;title&gt;The Poet's First Poem&lt;/title&gt;
        &lt;genre&gt;Poem&lt;/genre&gt;
        &lt;price&gt;24.95&lt;/price&gt;
        &lt;review&gt;Least poetic poems.&lt;/review&gt;
     &lt;/book&gt;
  &lt;/x:books&gt;
  </code></pre>
  
  <p>Cheers,
  Isr</p>