|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
DFDL |
« View previous topic :: View next topic » |
Author |
Message
|
sreenu |
Posted: Thu Jun 25, 2015 11:19 am Post subject: DFDL |
|
|
Newbie
Joined: 25 Jun 2015 Posts: 2
|
Hi All,
I am new to the WMB.When I was working out some samples for understanding purpose I have got this doubt about the DFDL.
suppose I have five input fields coming from the input csv file (five fields are name,mobile,email,referenceid,address).when I define them in DFDL message model.Suppose let us take mobile field is optional field(for some records they will give mobile value,for some value they will not provide in the input file).FOr the records which doesnot contain the mobile value,after parsing the next element value (i.e email value is assigning to the mobile value).is there any way that for those records which contain mobile value they need to mapped to mobile field in the output xml whereas for those which doesnot contain mobile field should come as blank value under the mobile tag in the output xml(means email value should not be assigned to mobile tag in the output xml.here I am using csv to xml conversion . |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Jun 25, 2015 12:09 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Did you set the mobile field as nillable in your DFDL model?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
sreenu |
Posted: Fri Jun 26, 2015 9:12 pm Post subject: |
|
|
Newbie
Joined: 25 Jun 2015 Posts: 2
|
I have kept min occurances for mobile field as zero. |
|
Back to top |
|
 |
kimbert |
Posted: Mon Jun 29, 2015 12:51 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Please provide an example of the input message that causes the problem.
Also, please show the message tree that you are getting, and the message tree that you would like to get.
This is the only way to discuss parsing problems accurately  _________________ 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 |
|
 |
|
|
 |
|
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
|
|
|
|