Author |
Message
|
gagan.maverick |
Posted: Mon Mar 09, 2015 2:28 am Post subject: Retrieve cdata value in esql |
|
|
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 |
|
 |
smdavies99 |
Posted: Mon Mar 09, 2015 4:32 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Mon Mar 09, 2015 4:47 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Mon Mar 09, 2015 4:49 am Post subject: Re: Retrieve cdata value in esql |
|
|
 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 |
|
 |
gagan.maverick |
Posted: Mon Mar 09, 2015 6:17 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Mon Mar 09, 2015 6:47 am Post subject: |
|
|
 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 |
|
 |
kimbert |
Posted: Mon Mar 09, 2015 2:46 pm Post subject: |
|
|
 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 |
|
 |
|