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 » How to remove XML tags

Post new topic  Reply to topic
 How to remove XML tags « View previous topic :: View next topic » 
Author Message
chanduy9
PostPosted: Mon Apr 15, 2002 10:08 am    Post subject: Reply with quote

Disciple

Joined: 28 Nov 2001
Posts: 177
Location: USA

Hi,
I am trying to remove xml tags...but i couldnt..i am using following code
WHILE i <= QMC DO
SET OutputRoot.XML.TEST.QM=NULL;
SET OutputRoot.XML.TEST.QN=NULL;
SET i=i+1;
END WHILE;
it is giving me <TEST/>, but i dont what that..i want remove XML tag completly..
any suggestions..
Thanks in advance.
Chandra.
Back to top
View user's profile Send private message
kolban
PostPosted: Mon Apr 15, 2002 10:26 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

Could you post an example of incoming XML and desired outgoing XML?
Back to top
View user's profile Send private message
chanduy9
PostPosted: Mon Apr 15, 2002 10:55 am    Post subject: Reply with quote

Disciple

Joined: 28 Nov 2001
Posts: 177
Location: USA

i want to remove which ever coming under
OutputRoot.XML.TEST

Thanks,
Chandra.
Back to top
View user's profile Send private message
kirani
PostPosted: Mon Apr 15, 2002 11:41 am    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

If you are using WMQI 2.1 then you can use DETACH ESQL statement.
Back to top
View user's profile Send private message Visit poster's website
Segs
PostPosted: Tue Apr 16, 2002 6:23 am    Post subject: Reply with quote

Voyager

Joined: 04 Oct 2001
Posts: 78
Location: Zurich Financial Services

I maybe missing something here but can't you simply use

SET OutputRoot.XML.Test = Null

But if you are using MQSI 2.0.2 you can only have one main XML container so this will wipe out everything.

Is this correct?
Back to top
View user's profile Send private message Send e-mail
CodeCraft
PostPosted: Fri May 17, 2002 11:41 am    Post subject: Reply with quote

Disciple

Joined: 05 Sep 2001
Posts: 195

This could be a bug. For generic XML, the parser should really be able to distinguish between an element which is explicitly set to null, and an element which is explicitly set to an empty string ''. To my mind, the first should result in removal of the XML tag/value from the tree, the second should result in an empty element <TEST/>.

Since there are no null handling properties for generic XML I suspect this should be the behaviour. Are you working with 2.1 CSD 02, if not, I would try with this and then perhaps raise a query directly with IBM Support on the issue.
Back to top
View user's profile Send private message
suneelsh
PostPosted: Fri May 17, 2002 10:33 pm    Post subject: Reply with quote

Acolyte

Joined: 13 Apr 2002
Posts: 69
Location: Pune,India

to remove everything under test first create a reference to test then detach it. later on if you wish to attach it somewhere else you can used the reference created earlier.
Back to top
View user's profile Send private message Send e-mail
CodeCraft
PostPosted: Sat May 18, 2002 12:44 am    Post subject: Reply with quote

Disciple

Joined: 05 Sep 2001
Posts: 195

There may still be an issue here, since the 2.0x behaviour for setting something = Null is to remove it from the tree. The 2.1 implementation of Null handling should at least ensure that it works the same way as it used to.
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 » How to remove XML tags
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.