ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Xpath Problem

Post new topic  Reply to topic
 Xpath Problem « View previous topic :: View next topic » 
Author Message
CAONIMA
PostPosted: Wed Aug 05, 2015 10:49 am    Post subject: Xpath Problem Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Wed Aug 05, 2015 10:54 am    Post subject: Reply with quote

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
View user's profile Send private message
CAONIMA
PostPosted: Wed Aug 05, 2015 11:07 am    Post subject: Reply with quote

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
View user's profile Send private message
naio
PostPosted: Wed Aug 05, 2015 12:27 pm    Post subject: Reply with quote

Voyager

Joined: 08 Nov 2012
Posts: 82

Hi, you can use a SELECT statement.

https://www-01.ibm.com/support/knowledgecenter/SSMKHH_9.0.0/com.ibm.etools.mft.doc/ak05620_.htm


Hope this helps.

Naio
_________________
"God is in his heaven all's right with the world"
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Aug 05, 2015 12:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Xpath Problem
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.