Skip to Content
May 28, 2009 at 10:39 AM

Problems with Xpath


Hi All,

i'm new in XI-Xpath, i read the main blogs here in SDN community but i still have some problems with my condition.

My scenario is the following, i have the following messagge and i need to send it to different systems according to the "sender" field

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





<MessageType MessageTypeCode=""/>






I need that the receveir is system A if the sender='a' and 'recipient='b', i can do it using the equal and AND condition but i need to use the EX operator (beacuse this is just a part of a bigger condition).

I tried with

(/p1:TrainRunningInformationMessage/MessageHeader/Sender = 'a' and /p1:TrainRunningInformationMessage/MessageHeader/Recipient = 'b' EX ) but it's not working, can anyone help me?

Thz a lot