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 » CREATE statement - delete empty xml tags

Post new topic  Reply to topic
 CREATE statement - delete empty xml tags « View previous topic :: View next topic » 
Author Message
chris boehnke
PostPosted: Wed May 27, 2015 9:57 am    Post subject: CREATE statement - delete empty xml tags Reply with quote

Partisan

Joined: 25 Jul 2006
Posts: 369

Hi All,

I have to build an XML message with the response from a service.
I am using CREATE statement to build each element and assign value like below example.


Quote:
CREATE LASTCHILD OF OutputRoot.XMLNSC.Coverage.Benefit Name('description') Value InputRoot.XMLNSC.X.X.description


But if the element in the input is not present(doesnt not exist), then i am creating an empty "description" element tag.

I don't want to create an element if input element doesn't exist.
Can you pls let me know if this is possible with create statement?
Back to top
View user's profile Send private message
inMo
PostPosted: Wed May 27, 2015 12:57 pm    Post subject: Reply with quote

Master

Joined: 27 Jun 2009
Posts: 216
Location: NY

Meaning you don't want to first check that

Code:
InputRoot.XMLNSC.X.X.description


has a value before executing the create statement?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed May 27, 2015 1:17 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

you could use SET... if the value is null the tag gets deleted right after creation...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » CREATE statement - delete empty 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.