Hi Guys,

I have written custom message selector which uses xpath expressions to evaluate incoming messages but evaluation fails due to presence of xmlns='http://svn.msk.trd.ru/xsd/fixml'. If I remove it then xpath evaluation succeeds. I have tried to specify namespace and passed it to createXPathExpression but it did not solve my problem:

Map<String, String> namespaces = new HashMap<String, String>();
namespaces.put("", "http://svn.msk.trd.ru/xsd/fixml");
XPathExpressionFactory.createXPathExpression(xPath Expression, namespaces);


Can you please help me out with that.

Here is sample XML message:

<?xml version='1.0' encoding='UTF-8' standalone='yes'?><TrdCaptRpt xmlns='http://svn.msk.trd.ru/xsd/fixml' TrdID='3233345' TransTyp='0' RptTyp='2' TrdTyp='54' ExecTyp='F' RptID2='3233345' QtyTyp='0' LastQty='100' LastPx='1540.65' Ccy='RUR' SettlCcy='RUR' TrdDt='2011-11-28T17:16:06.261+03:00' TxnTm='2011-11-28T17:16:06.261+03:00' SettlDt='2011-11-28T17:16:06.261+03:00' ValueDt='2011-11-28T17:16:06.261+03:00'><Instrmt Sym='GAZP' CFI='OECCN'/><RptSide Side='2' AcrdIntAmt='0' NetMny='100' SettlCurrAmt='100' BOTrdType='Обл2Трд' BOTrdType2='1' BOTrdIdCounter='1'><Pty ID='**CPMP_A' R='1'/><Pty ID='SYSTEM_A' R='16'/><Pty ID='*FI' R='83'/><Pty ID='Cliring' R='1101'/><Pty ID='**CPMP_A' R='1102'/><Pty ID='*TD_A' R='1103'/><Pty ID='0' R='1104'/><Pty ID='DEUCH' R='1105'/><Pty ID='' R='1106'/><Pty ID='0' R='1107'/></RptSide></TrdCaptRpt>