Skip to Content
0
Former Member
Jul 12, 2007 at 12:48 PM

XPath Condition - Dynamic determination

65 Views

Hi,

I am doing one scenario where I need to determine interface dynamically. So in interface determination I am configured two inbound interfaces with some condition. For that I am using XPath condition.

Following is my source data structure.

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

<ns0:MT_test xmlns:ns0="urn:aa-bb:test">

<Input>

<Input>

<Input1><b>Mr.</b> FirstName LastName</Input1>

</Input>

</Input>

</ns0:MT_test>

<b>Condition:</b>

/p1:MT_QueryDamageIntentClaim1/Input/Input/[substring(Input1,1,3) = 'Mr.']

If I use simple condition (= and not EX) then this is working fine. But here I need to compare first 3 characters from <input1> and so I can not use simple condition.

For this I already referred following blogs and URL but it is not working.

dynamic-interface-determination-based-on-file-cont

<a href="/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination:///people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

<a href="/people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object:///people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object

Regards,

Sunil Bhavsar.