Duplicates issue in XML OUTPUT STAGE to generate xml
Posted: Thu Sep 10, 2009 11:18 am
Hi,
I am using XML output stage to generate an xml file. I am able to generate the xml file also but the issue is with the structure of the xml file.
Below are a sample records for which the xml file was generated.
1) "100256","Dsm","410","E","A"
2) "100257","Dsm","410","E","A"
3) "100260","Dsm Ii","412","E","A"
The sample of the xml generated was like given below.If you see the xml generated it shows that it has clubbed together the tags for the code 100256 and 100257, Is is probably because they have all of there other associated values same. Please help me out with this issue as I want it to generate seperate xml tags for both of them like the one created for code 100260.
<ns1:updateRequest>
<ns1:jobList>
<ns1:job>
<ns1:code>100256</ns1:code>
<ns1:code>100257</ns1:code>
<ns1:description>Dsm</ns1:description>
<ns1:salaryPayGrade>410</ns1:salaryPayGrade>
<ns1:flsaStatus>E</ns1:flsaStatus>
<ns1:effectiveStatus>A</ns1:effectiveStatus>
</ns1:job>
<ns1:job>
<ns1:code>100260</ns1:code>
<ns1:description>Dsm Ii</ns1:description>
<ns1:salaryPayGrade>412</ns1:salaryPayGrade>
<ns1:flsaStatus>E</ns1:flsaStatus>
<ns1:effectiveStatus>A</ns1:effectiveStatus>
</ns1:job>
</ns1:jobList>
</ns1:updateRequest>
I am using XML output stage to generate an xml file. I am able to generate the xml file also but the issue is with the structure of the xml file.
Below are a sample records for which the xml file was generated.
1) "100256","Dsm","410","E","A"
2) "100257","Dsm","410","E","A"
3) "100260","Dsm Ii","412","E","A"
The sample of the xml generated was like given below.If you see the xml generated it shows that it has clubbed together the tags for the code 100256 and 100257, Is is probably because they have all of there other associated values same. Please help me out with this issue as I want it to generate seperate xml tags for both of them like the one created for code 100260.
<ns1:updateRequest>
<ns1:jobList>
<ns1:job>
<ns1:code>100256</ns1:code>
<ns1:code>100257</ns1:code>
<ns1:description>Dsm</ns1:description>
<ns1:salaryPayGrade>410</ns1:salaryPayGrade>
<ns1:flsaStatus>E</ns1:flsaStatus>
<ns1:effectiveStatus>A</ns1:effectiveStatus>
</ns1:job>
<ns1:job>
<ns1:code>100260</ns1:code>
<ns1:description>Dsm Ii</ns1:description>
<ns1:salaryPayGrade>412</ns1:salaryPayGrade>
<ns1:flsaStatus>E</ns1:flsaStatus>
<ns1:effectiveStatus>A</ns1:effectiveStatus>
</ns1:job>
</ns1:jobList>
</ns1:updateRequest>