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 » What is difference between fn:empty and create functions.

Post new topic  Reply to topic
 What is difference between fn:empty and create functions. « View previous topic :: View next topic » 
Author Message
srinivasonmb
PostPosted: Mon Aug 12, 2013 11:38 am    Post subject: What is difference between fn:empty and create functions. Reply with quote

Novice

Joined: 04 Jul 2013
Posts: 16

What is the major difference between fn:empty and create functions in graphical data mapping node in message broker v8.

while migrating my message map from v6 to v8 i came to know there were number of empty elements, to handle these empty elements we have used msgmap:empty-element function in v6.1, so in order to handle these elements in V8, we have used mainly two functions i.e. fn:empty and create.

I came to know that both fn:empty, but create functions does the same functionality. but i didn't figure out which one is better in performance wise.

when i used the fn:empty the default value is ' '. If if remove the default value in fn:empty i am getting a run time error as "empty" is not a function.

please give me an advise which one is better as performance wise.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Aug 12, 2013 2:09 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
which one is better as performance wise
Maybe there is a third way. Instead of dealing with empty elements in your transformation logic, can you use the facilities of XML Schema ( if the output is XML ) or DFDL ( if not XML ) to insert the default values automatically? Apologies if you already considered that - but a migration project is sometimes a good opportunity to fix old design issues.
_________________
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
View user's profile Send private message
srinivasonmb
PostPosted: Mon Aug 12, 2013 7:51 pm    Post subject: Reply with quote

Novice

Joined: 04 Jul 2013
Posts: 16

But in my message map node i am using multiple times those attributes, some times with values and some times with default values.
so i can not use default values in schema.
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 » What is difference between fn:empty and create functions.
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.