Skip to Content
0
Former Member
Jun 10, 2009 at 10:26 AM

XPATH condition in Interface Determination

304 Views

Dear All,

We have one requirement like below:

One sender but 2 receivers. Sender sends XML data with Header and Body. There is a field in Body which determines the corresponding Interface mapping to be triggered.

The field is like this

RootNode

Body

Segment

< ContactTypeID recordID = "123456">REC1</ContactTypeID> - One receiver

< ContactTypeID recordID = "7890234">REC2</ContactTypeID> - One receiver

however the field will repeat only once in the input XML.

We are trying to check the input XML in Interface determination like below:

/RootNode/Body/Segment/ContactTypeID = REC1 - Interface mapping will trigger for Receiver-1

/RootNode/Body/Segment/ContactTypeID = REC2 - Interface mapping will trigger for Receiver-2

But with this condition, we found this is not executable.. I believe this is because of having attribute.

To confirm this, I tested this with a field which is not having attribute and then its working fine.

Any inputs on this requirement.

Regards,

Srini