So i'm attempting to convert a csv file to XML that contains 5 columns:
UserID;Cert;LastCertDate;ExpireDate;CertNumber
100001;oka;09.09.2018;09.09.2019;100001
100001;pik;10.10.2018;10.10.2019;200001
The XML structure should be as the following:
<Cv>
<Owner>
<UserID></UserID>
</Owner>
<Content>
<Certificates>
<Certificate>
<Cert>oka</Cert>
<LastCertDate>09.09.2018</LastCertDate>
<ExpireDate>09.09.2019</ExpireDate>
<CertNumber>100001</CertNumber>
</Certificate>
<Certificate>
<Cert>pik</Cert>
<LastCertDate>10.10.2018</LastCertDate>
<ExpireDate>10.10.2019</ExpireDate>
<CertNumber>200001</CertNumber>
</Certificate>
</Certificates>
</Content>
</Cv>
Per now i only manage to get the 2nd Certificate into the XML since its on its on row in the CSV file.
Any idea on how i could merge the UserID and create a list that contains all the certificates on that specific user?
Thanks!