|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
What is difference between fn:empty and create functions. |
« View previous topic :: View next topic » |
Author |
Message
|
srinivasonmb |
Posted: Mon Aug 12, 2013 11:38 am Post subject: What is difference between fn:empty and create functions. |
|
|
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 |
|
 |
kimbert |
Posted: Mon Aug 12, 2013 2:09 pm Post subject: |
|
|
 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 |
|
 |
srinivasonmb |
Posted: Mon Aug 12, 2013 7:51 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|