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 » Not creating parent fields if child element is not present

Post new topic  Reply to topic
 Not creating parent fields if child element is not present « View previous topic :: View next topic » 
Author Message
amiivas
PostPosted: Fri Dec 18, 2009 12:08 pm    Post subject: Not creating parent fields if child element is not present Reply with quote

Apprentice

Joined: 14 Oct 2007
Posts: 44
Location: Texas, USA

Hi,
There is input xml msg structure something like this, parent.child.grandchild. Now input tree is parsing it and if grandchild is not present i.e value os NULL, parent.child tag is not created.
In compute node, I am writing
Set OutputRoot.XMLNSC.parent.child.grandchild = InputRoot.XMLNSC.parent.child.grandchild;

The output tree structure is creating empty child tag. Now I can prevent it by implementing NULL check or EXISTS fn for parent.child. But I do not want this way as in current scenario, I am having around 500 fields and each fields are optional.
Do we have any other method by which we can prevent it without implementing a null check on every child?
Back to top
View user's profile Send private message
Gaya3
PostPosted: Sun Dec 20, 2009 10:02 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

This is MB related :
Admins : Please move to MB Section

coming back to the issue:

Create a generic function which checks the field is null or not.
if null dont create else create the output.
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sun Dec 20, 2009 11:39 pm    Post subject: Reply with quote

Jedi Council

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

isn't this very much the same question as:-
http://www.mqseries.net/phpBB2/viewtopic.php?t=51951

Which you asked earlier?
_________________
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
amiivas
PostPosted: Mon Dec 21, 2009 5:30 pm    Post subject: Reply with quote

Apprentice

Joined: 14 Oct 2007
Posts: 44
Location: Texas, USA

Yes this was the first post which originated from the main issue described in my later post. Later I realized that first this was posted in the wrong forum and again the later one is moving closer to this issue. So now it's a good idea to close this thread.
Thank you for bringing this in my notice. and thanks all for the replies for both of my thread.
_________________
IBM WebSphere Certified Solution Developer
Back to top
View user's profile Send private message
amiivas
PostPosted: Mon Dec 21, 2009 5:35 pm    Post subject: Closed Reply with quote

Apprentice

Joined: 14 Oct 2007
Posts: 44
Location: Texas, USA

Linked to http://www.mqseries.net/phpBB2/viewtopic.php?t=51951
_________________
IBM WebSphere Certified Solution Developer
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 » Not creating parent fields if child element is not present
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.