Skip to Content
0
Former Member
Jul 13, 2008 at 02:18 AM

Mapping Issue - Urgent

21 Views

Source

<source>

<Record>

<Date>5/15/2008</Date>

<DocType>ZL</DocType>

<CompCode>1010</CompCode>

<GL_Account>21300119</GL_Account>

<Amount>14,357.83</Amount>

</Record>

<Date>5/5/2008</Date>

<DocType>ZL</DocType>

<CompCode>1020</CompCode>

<GL_Account>21300119</GL_Account>

<Amount>60.00</Amount>

</Record>

</source>

-


Expected Target:

<Target>

<Record>

<Date>5/15/2008</Date>

<DocType>ZL</DocType>

<CompCode>1010</CompCode>

<GL_Account>21300119</GL_Account>

<Amount>14,357.83</Amount>

</Record>

</Target>

<Target>

<Record>

<Date>5/5/2008</Date>

<DocType>ZL</DocType>

<CompCode>1020</CompCode>

<GL_Account>21300119</GL_Account>

<Amount>60.00</Amount>

</Record>

</Target>

I tried and I was able to produce, multiple targets nodes but not the record element in target elements.

When the "dateCompcode" changes a target node should be generated and all records having same "dateCompcode" should be in one target.

reg