title: Mule choice using XPath Evaluator
body: <p>In the following mule flow I'm using xpath to decide which queue the message needs to be sent to. However the xpath expression is returning false, even though the XML has tc="121". Can you tell what am I doing wrong?</p>
  
  <p>Below is the mule flow and XML evaluated by XPath.</p>
  
  <p>Mule Flow :</p>
  
  <pre><code>&lt;flow name="ProcessXMLRequest"&gt;
      &lt;jms:inbound-endpoint exchange-pattern="one-way" queue="mq.xml.request" /&gt;
      &lt;logger message="XML payload is #[payload]" level="INFO" /&gt;
      &lt;choice&gt;
          &lt;when expression="/TXLife/TXLifeRequest/TransType/@tc='121'"
              evaluator="xpath"&gt;
              &lt;jms:outbound-endpoint queue="mq.121.request.apps" /&gt;
          &lt;/when&gt;
          &lt;when
              expression="/TXLife/TXLifeRequest/TransType/@tc='1122'"
              evaluator="xpath"&gt;
              &lt;jms:outbound-endpoint queue="mq.1122.request.apps" /&gt;
          &lt;/when&gt;
          &lt;otherwise&gt;
              &lt;jms:outbound-endpoint queue="mq.error"/&gt;
          &lt;/otherwise&gt;
      &lt;/choice&gt;
  &lt;/flow&gt;
  </code></pre>
  
  <p>XML:</p>
  
  <pre><code>&lt;TXLife xmlns:ns2="http://abc.com/services/mvi" xmlns="http://ACORD.org/Standards/Life/2"&gt;
      &lt;TXLifeRequest PrimaryObjectID="Holding_1"&gt;
          &lt;TransType tc="121"&gt;121&lt;/TransType&gt;
          &lt;TransMode tc="2"&gt;2&lt;/TransMode&gt;
      &lt;/TXLifeRequest&gt;
  &lt;/TXLife&gt;
  </code></pre>