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 » Extract CDATA Value from XML

Post new topic  Reply to topic
 Extract CDATA Value from XML « View previous topic :: View next topic » 
Author Message
viswasg
PostPosted: Fri Feb 11, 2005 11:06 am    Post subject: Extract CDATA Value from XML Reply with quote

Novice

Joined: 15 Oct 2003
Posts: 10

Hi,

I am trying to extract CDATA value from XML, wherein I want only the value in the CDATA to be retrieved. In the following XML
<?xml version="1.0" encoding="UTF-8"?>
<Test>
<CTag><![CDATA[Test & Test]]></CTag>
</Test>

I want to extract only "Test & Test".

When I use InputRoot.XML.Test.CTag.(XML.CDataSection), I am getting the output as <![CDATA[Test & Test]]>, but I want only "Test & Test" to be retrived.

Could anyone of you let me know how to acheive this using ESQL?

Thanks in advance.

rgds,
Viswas
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sat Feb 12, 2005 8:54 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Did you try using the VALUE clause?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
viswasg
PostPosted: Mon Feb 14, 2005 3:08 pm    Post subject: Reply with quote

Novice

Joined: 15 Oct 2003
Posts: 10

Hi Jeff,

I havent tried using VALUE, but found the solution.

We need to cast the parsing xml value to character i.e,

CAST(InputRoot.XML.Test.CTag AS CHARACTER).

This would retrieve only Test & Test from CDATA.

Anyways, thanks for the help.

rgds,
Viswas
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 » Extract CDATA Value from XML
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.