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 » Generic CSV message set with empty fields

Post new topic  Reply to topic
 Generic CSV message set with empty fields « View previous topic :: View next topic » 
Author Message
Laurens
PostPosted: Thu Aug 29, 2013 2:22 am    Post subject: Generic CSV message set with empty fields Reply with quote

Apprentice

Joined: 01 Oct 2009
Posts: 35

Dear Broker Experts ,

I have created a message set that has one field only that can occur 1 till -1 times. The reason of this message set being that I need to parse a CSV file and do not know beforehand how many columns the csv will have.

So when I parse the csv
A,B,C
I get perfectly
<Root>
<Field>A</Field>
<Field>B</Field>
<Field>C</Field>
</Root>

However , when I parse a CSV with a empty column
A,,C for instance ; I do not get an empty XML tag on it. I get.
<Root>
<Field>A</Field>
<Field>C</Field>
</Root>

I tried more or less everything with the NULL value settings but seem to have no luck in making it work.

By the way I use the same message set to have the oposite convertion (xml->csv) and that works fine.
Thus
<Root>
<Field>A</Field>
</Field>
<Field>C</Field>
</Root>
becomes A,,C in CSV

I gues this is a simple problem, but I'm missing it.
Any thoughts ?


Kindest regards
Laurens
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Aug 29, 2013 2:29 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Hi Laurens,

Try this: http://www.mqseries.net/phpBB/viewtopic.php?p=236495&sid=79a916a5eeafd183304837a3edfe6b64
_________________
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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Generic CSV message set with empty fields
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.