title: Xpath not working in camel route
body: <p>I'm sending soap xml through exchange object.When i try to route the request using xpath in apache camel,i'm not able to execute it properly.Please suggest
  My Exchange body xml is</p>
  
  <pre><code> &lt;Envelope&gt;&lt;Header&gt;
    &lt;/Header&gt;
      &lt;Body&gt;
       &lt;Choice&gt;
          &lt;Selector&gt;1&lt;/selector&gt;
      &lt;/Choice&gt;
     &lt;/Body&gt;
   &lt;/Envelope&gt;
  </code></pre>
  
  <p>My Camel Route</p>
  
  <pre><code>from(direct:XX)
    .to(when(xpath("body()/Choice/Selector/.",String.class)=='1')
    .to("direct:X")
    .otherwise()
    .to("direct:Y")
  </code></pre>