|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Xpath Problem |
« View previous topic :: View next topic » |
Author |
Message
|
CAONIMA |
Posted: Wed Aug 05, 2015 10:49 am Post subject: Xpath Problem |
|
|
Acolyte
Joined: 03 Dec 2014 Posts: 65
|
Hi guys,
I have one Java Xpath which looks like:
//A/B/C[NAME='S' or COUNTRY='US']/D
How can I translate it using ESQL?
Something like:
InputRoot.XMLNSC.A.B.C.D WHEN NAME ='S' or COUNTRY='US'?
Is there a function or a method can do that?
Many thanks! |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Aug 05, 2015 10:54 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
So you want to select one or more elements from A.B.C that have specific child values. |
|
Back to top |
|
 |
CAONIMA |
Posted: Wed Aug 05, 2015 11:07 am Post subject: |
|
|
Acolyte
Joined: 03 Dec 2014 Posts: 65
|
mqjeff wrote: |
So you want to select one or more elements from A.B.C that have specific child values. |
Hi,
Thank you for your reply.
Yes. I want to select one item from XML tree, but with two conditions in the Xpath.
How can I do that? |
|
Back to top |
|
 |
naio |
Posted: Wed Aug 05, 2015 12:27 pm Post subject: |
|
|
Voyager
Joined: 08 Nov 2012 Posts: 82
|
|
Back to top |
|
 |
Vitor |
Posted: Wed Aug 05, 2015 12:28 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
CAONIMA wrote: |
mqjeff wrote: |
So you want to select one or more elements from A.B.C that have specific child values. |
Hi,
Thank you for your reply.
Yes. I want to select one item from XML tree, but with two conditions in the Xpath.
How can I do that? |
The clue is in the italitics used by my most worthy associate. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|