on 09-18-2009 1:01 PM
Hi people.
I need to reference a receiver determination via XPath using an element in the inbound XML. The XML is like this:
<?xml version="1.0" encoding="utf-8"?>
<ns0:MT_Marked xmlns:ns0="http://test/nick">
<row>
<A>field1</A>
<Mark>X</Mark>
</row>
<row>
<A>field2</A>
<Mark></Mark>
</row>
<row>
<A>field3</A>
<Mark></Mark>
</row>
</ns0:MT_Marked>
The element basing of the receiver is determined, is the <Mark> element child of the first <row> element.
The correct XPath query should be
/ns0:MT_Marked/row[1]/Mark = X
or
/ns0:MT_Marked/row[1]/Mark = 'X'
not multilined.
In the prefix table, I have defined
ns0=http://test/nick
Unfortunately, at runtime the PI seems ignores the query.
Please, what's wrong in my approach?
Thanks in advance.
Ciao. Nicola
Hi Nichola,
Have you tried /ns0:MT_Marked/row[1]/Mark = 'X' with multiline checked in receiver determination condition?
Regards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your instantaneous support )
I tested
/ns0:MT_Marked/row/Mark = X
without [1] and
/ns0:MT_Marked/row[1]/Mark = X
with multiline check but without news.
The exact configuration in my receiver determination is the follow
/ns0:MT_Marked/row/Mark != X EX : --> comm_comp_1
/ns0:MT_Marked/row/Mark = X EX : --> comm_comp_2
I tried too
/ns0:MT_Marked/row/Mark != X : --> comm_comp_1
/ns0:MT_Marked/row/Mark = X : --> comm_comp_2
using the graphical operator by Condition Editor.
I'm hoping in you
Nicola
Have you simply tried this?
>>/ns0:MT_Marked/row/Mark = X
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.