Thursday, 16 July 2020

Elegant approach to convert CSV into XML based on templates

So I've never done backend before and wanted to think it out loud on how to achieve this. Basically, user will upload a CSV file of multiple records in a specific format(template), the app is required convert it into an XML. The challenge is there are different conversion rules for each of the template and these templates can be up to 40/50 in numbers.I'm looking for generic/elegant approach which does not end up in a switch case for each of the template conversion!

Submitted July 16, 2020 at 07:19PM by RedVelocity_

No comments:

Post a Comment