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 » Retrieve cdata value in esql

Post new topic  Reply to topic
 Retrieve cdata value in esql « View previous topic :: View next topic » 
Author Message
gagan.maverick
PostPosted: Mon Mar 09, 2015 2:28 am    Post subject: Retrieve cdata value in esql Reply with quote

Acolyte

Joined: 30 Sep 2014
Posts: 50

Code:
<Obj>
   <Name>Ready for publication </Name>
<![CDATA[false]]></articleData>
</Obj>

How do I retrieve the "false" value via XPath?

i need to check whether the value is false or true in tree structure its coming like this ..

Code:
Obj
   Name:CHARACTER:Ready for publication
   CHARACTER:false
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Mar 09, 2015 4:32 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Moderators can you move this to the Broker forum please.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Mar 09, 2015 4:47 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

smdavies99 wrote:
Moderators can you move this to the Broker forum please.


Done
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Mar 09, 2015 4:49 am    Post subject: Re: Retrieve cdata value in esql Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

gagan.maverick wrote:
How do I retrieve the "false" value via XPath?


As the title of this post is "Retrieve cdata value in esql", the short answer to "How do I retrieve the "false" value via XPath?" is "you don't" as ESQL doesn't support XPath.

You can however navigate to the relevent point of the document in ESQL.

Perhaps if you went into a little more detail about what you've already tried?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
gagan.maverick
PostPosted: Mon Mar 09, 2015 6:17 am    Post subject: Reply with quote

Acolyte

Joined: 30 Sep 2014
Posts: 50

Actually that issue i have resolved but , now while doing
MOVE REFIN_MESSAGE NEXTSIBLING;

on this tree
XML
articles
article
article
article

after the 1st one its not going inside 2nd article as after article there is \n.. so could you help me in accessing 2nd article
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Mar 09, 2015 6:47 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

gagan.maverick wrote:
Actually that issue i have resolved


Care to mention how for the benefit of future readers?

gagan.maverick wrote:
now while doing
MOVE REFIN_MESSAGE NEXTSIBLING;

on this tree
XML
articles
article
article
article

after the 1st one its not going inside 2nd article as after article there is \n.. so could you help me in accessing 2nd article


And we would know where REFIN_MESSAGE was pointing how, without the code? Should we infer that you have it pointing to articles/article[1]? Did you assign that with a DECLARE or a MOVE? If it doesn't go to the 2nd article, where does it go? What do you mean by "inside"? Also

gagan.maverick wrote:
as after article there is \n..


Do you mean by this that there's actually a \n whitespace after the first article which is in fact the next sibling of the tag? If so:

- if you really mean XML in the document example you've posted, i.e you're using the XML domain to parse the document then not only are you stupidly using a parser that's been depreciated for many versions but you're in a trap of your own making
- if you're using one of the correct parsers, but have correctly determined the problem but still had to post for the solution, shame on you.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Mar 09, 2015 2:46 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

@gagan.maverick: If you want useful answers then you will need provide more information, and put it in a form that people can understand.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
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 » Retrieve cdata value in esql
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.