Thank you for all your replies,
I have been looking at option two from Phil, as it seems to be more closely aligned with what i've been trying to do.
I've looked into the example given by JB, where the user looks like its using papa parse to extract from a csv into a new csv file format,
which is half of what I need. However, I', still unsure if I can inject the extracted csv data into an existing model's XML.
I guess my question is, how do I modify a model's XML using javascript.
Cheers,
Roman