This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I need to convert CSV flat file data to XML with nested elements. My current approach is to first convert the CSV to a "flat" XML and then apply XLST transformation to the latter in order to obtain the final XML.
I am looking for more elegant XSLT syntax, the one I am using now seems ugly and probably will not work in case of optional elements.
I have tried http://servingxml.sourceforge.net/ and it seemed to meet my needs completely. It covers large range of conversions, requires only short learning curve (at least for basic transformations) and the author, Daniel Parker, provides excellent support. While testing this library I noticed a bug which Daniel has fixed the very next weekend.
Anton Melumad can you please help me in undersanding the setting in getting the xml file out of the CSV file. I tried to look for the getting started link of this but could not understand on it. It would be of great help if you can give me some insite on this. If you can give me a demo project also would help in great amount.