on 04-07-2016 6:18 AM
Hi Folks,
I am working on conversion of Flatfile in sender side.
Here my requirement is having the field name in substructure to be optional.
For example:
Recordset
A
B
C
D
E
F
In this I want to set "E" and "F" to be optional.
Because in one set of files these fields will not appear.
Reagards,
Pavithra.R
You mean the fields existence are optional? manning some time the fields E or F will have values in the flat file and sometimes not?
if this is the case you should maintain the delimiters in the files with no values.
In such case the XML structure will be filled with closed XML tag and no values in it.
If this is a fixed length file you can do the same with fixed length places with no values.
For example:
AAAAA,BBBB,CCCC,DDDD,,,
or
AAAAABBBBCCCCDDDD \nl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pravithra,
kindly check the following wiki How To...Content conversion module with J2EE JMS adapter - Process Integration - SCN Wiki
There you have the parameter, e.g Plain2XML xml.recordsetStructure NameA,1,NameB,*,NameC,1
If you use the * it means in can occur multiple times like 0..unbounded. If your flatfile does not contain any structure E and F, file content conversion will skip these substructures.
Make sure your xsd in ESR has these structures E and F optional, too.
E.g. in your case: xml.recordsetStructure SubstructureA,1,SubstructureB,1,SubstructureC,1,SubstructureD,1,SubstructureE,*,SubstructureF,*
For a more deep understanding kindly check the following blog posts and documents. Thanks to :
Kind regards
Konrad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.