Hi All,
I want to read an csv file and generate an xml.
The approach i am following is to read csv headers which would be first line in csv file, and they will represent the POJO's.
Then i am passing the POJO to some xml generation code.
The problem i am facing is when the headers which are present on first line of csv would be for complex objects.
For e.g.
Employee is the class having empId(int),firstName(
String),lastName(String) and address(Address).
Address would be another class which would have addressline1(String),addressline2(String) so on..
Please let me know how should I represent the headers in csv, read the csv's and populate the
java object?
Looking forward for a quick reply.
Thanks in advance
Cheers.