Hello friends,
I have the following structure,
<root>
<nameA>
<value1>value</value1>
<value2>value</value2>
<value3>value</value3>
<nameB>
<value4>value</value4>
<value5>value</value5>
</nameB>
</nameA>
</root>
Here I need to convert this structure into a flat file. Here I am using RECEIVER FILE CONTENT CONVERSION to create a CSV file.
Can any help me in content conversion?
Thanks in advance,
-kanth.
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Srikanth,
I was in now way discouraging you from posting questions here on SDN. What I wanted to highlight was that people had answered your question and even if you thought it was wrong / people had misunderstood your question , if you had posted it in your thread it would have been benefiical to one and all. At times using the same thread does help.
And, coming to your question, the answers are for Receiver File Adapter.
If you see the strucutre in the online help and cross comapre it with your strcuture, you will note that you are using a Nested Strcuutre. NAMEB is within NAME A .
As far i know, this strcuture is not supported and you should consider changing the datatype so that NAME B and NAME A are on the same level.
If you do this , then the content conversion will work with the parameters pointed .
Regards
Bhavesh
Bhavesh,
I the output file I am able to find first field of each repetitive node.
For example,
<root>
<nameA>
<value1>value1</value1>
<value2>value2</value2>
<value3>value3</value3>
<nameB>
<value4>value14</value4>
<value5>value15</value5>
</nameB>
<nameB>
<value4>value24</value4>
<value5>value25</value5>
</nameB>
<nameB>
<value4>value34</value4>
<value5>value35</value5>
</nameB>
</nameA>
</root>
In my output file,
Value1, Value2, Value3, Value14, Value24, Value34
You have any idea on this? What could be the problem?
Thanks,
-kanth.
Hi srikanth,
Try as below..
Recordset Name : root
Record structure : nameA,1,nameB,*
Recordsetspermessage : *
processing parameters :
ignoreRecordsetNames: true
nameA.fieldNames : give field names
nameA.fieldseparator : ,
nameB.fieldseparator : ,
OR
ignoreRecordsetNames: true
nameA.fieldNames : give field names
nameA.fieldfixedlength : give field lengths
nameB.fieldfixedlength : give field lengths
Regards
Chilla..
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.