|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Null value in TDS message |
« View previous topic :: View next topic » |
Author |
Message
|
abcmno123 |
Posted: Mon Dec 11, 2006 4:19 am Post subject: Null value in TDS message |
|
|
Novice
Joined: 16 Aug 2006 Posts: 22
|
Hi all,
I am converting a TDS message to XML.
Consider that I have the input TDS message as data1,data2,data3,data4,data5.In the message set, the min occurrence for all the data elements is 0.Now, if say data2 value is empty or null then the input message that is passed is data1,,data3,data4,data5
But the problem with this is that the output XML message which is getting created is not having data2 tag.
My requirement is that the output XML message must contain the data2 tag also but the value inside that must be empty.like <data2></data2>.
Kindly help. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Dec 11, 2006 4:46 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You need to read about NULL handling in MRM-TDS and NULL handling in MRM-XML if you are modelling your output XML.
You should look at the CSV sample in the WMB Samples Gallery, too. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
abcmno123 |
Posted: Mon Dec 11, 2006 8:18 pm Post subject: |
|
|
Novice
Joined: 16 Aug 2006 Posts: 22
|
Thanks a lot Jeff.
Setting Encoding Null property to NullLiteralValue solved the problem. |
|
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
|
|
|
|