Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8199471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:10:32+00:00 2026-06-07T06:10:32+00:00

In the following mule flow I’m using xpath to decide which queue the message

  • 0

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?

Below is the mule flow and XML evaluated by XPath.

Mule Flow :

<flow name="ProcessXMLRequest">
    <jms:inbound-endpoint exchange-pattern="one-way" queue="mq.xml.request" />
    <logger message="XML payload is #[payload]" level="INFO" />
    <choice>
        <when expression="/TXLife/TXLifeRequest/TransType/@tc='121'"
            evaluator="xpath">
            <jms:outbound-endpoint queue="mq.121.request.apps" />
        </when>
        <when
            expression="/TXLife/TXLifeRequest/TransType/@tc='1122'"
            evaluator="xpath">
            <jms:outbound-endpoint queue="mq.1122.request.apps" />
        </when>
        <otherwise>
            <jms:outbound-endpoint queue="mq.error"/>
        </otherwise>
    </choice>
</flow>

XML:

<TXLife xmlns:ns2="http://abc.com/services/mvi" xmlns="http://ACORD.org/Standards/Life/2">
    <TXLifeRequest PrimaryObjectID="Holding_1">
        <TransType tc="121">121</TransType>
        <TransMode tc="2">2</TransMode>
    </TXLifeRequest>
</TXLife>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T06:10:33+00:00Added an answer on June 7, 2026 at 6:10 am

    This is a namespace issue: you need to configure the http://ACORD.org/Standards/Life/2 namespace and use it in your XPath expression.

    In Mule, this is achieved with the namespace manager in such way:

    <mulexml:namespace-manager>
      <mulexml:namespace prefix="life2" uri="http://ACORD.org/Standards/Life/2"/>
    </mulexml:namespace-manager>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Following http://maksim.sorokin.dk/it/2010/06/10/izpack-with-maven/ I wrote a Maven POM which creates an IzPack installer, using the
Following is the code which i am using to add events in my android
Following is my code which I am using: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $this->paypal_url);
Following is the Play 2 app, https://github.com/playframework/Play20/tree/master/samples/java/forms Which portrays Dynamic form binding where form
Following method is accepted if I set UIColor like: [tabBarController.tabBar setSelectedImageTintColor:[UIColor greenColor]]; However I
Following is the class which is repeated: <div class="inner"> <p> Text1 <span class="plus"> 25</span>
I configure a flow in mule-config.xml based on the documentation( click here ). Here
I have the following profile which I am executing successfully (mvn exec:exec -DrunMule): <profile>
Following example code from the libpcap documentation yields the following code which should report
I'm trying to store instance of some class in mule registry on flow application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.