I am writing a simple CSV processor in Java.
I am using JAXB to create a model in java from DTD. I need to process the CSV format in this model, and then translate it into XML, which corresponds to the DTD. I use JAXB to output data from a Java model to XML. I have to write the mapping of the CSV model myself.
At the moment, I canβt come up with a better solution than to directly correlate the CSV with the Java model by reading it and assigning it to the model in code.
Is there a more elegant solution for this that you can think of? Perhaps some library of multiple display, etc.?
Thanks in advance.
source share