cancel
Showing results for 
Search instead for 
Did you mean: 

XPATH problem in Receiver Determination

Former Member
0 Kudos

Hi Experts, I get stucked in the XPATH expression in the Receriver Determination(RD) :

The input xml (default namespace settting) is like this :

<?xml version="1.0" encoding="UTF-8" ?>

<MT_XML_SENDER xmlns="http://test.com">

<LAST_NAME>Bryant</LAST_NAME>

<FIRST_NAME>Kobe10</FIRST_NAME>

</MT_XML_SENDER>

In the RD, I tried serveral XPATH expressions :

/MT_XML_SENDER/LAST_NAME = Bryant

/MT_XML_SENDER/LAST_NAME = "Bryant"

/MT_XML_SENDER(LAST_NAME = \"Bryant\") EX

But in every case, the PI always told me it could not find the receiver, I don't know what to do........

(BTW,if I remove the condition, PI could work as desired, so it is 100% related to XPATH setting)

Thanks very very much!!!!!

Ray

Accepted Solutions (0)

Answers (2)

Answers (2)

henrique_pinto
Active Contributor
0 Kudos

You probably noticed by yourself, but in the Condition Editor, it is necessary to set the namespace to a prefix and then create the XPath expression based on that prefix. i.e.

/p1:MT_XML_SENDER/p1:LAST_NAME

And on the prefix definitions, you set it to your namespace:

p1 http://test.com

Easiest way to do it is to go through the message structure, though, since it will fill the prefix automatically as per the definition in the message type in repository.

Best regards,

Henrique.

Former Member
0 Kudos

I find the desired form