Yogesh, Actually, I am looking for more generic solution which will take any CSV as input and convert it into required XML format. So is the reason I cant use XSLT in this case.
Its my bad that I didnt specified this in original problem description. Please let me know if I am wrong in understanding ur point. Ramesh, Can you please throw some more light on ur suggested solution? It will be a great help. thanks Amby On Thu, May 17, 2012 at 4:32 PM, ramesri [via Camel] < [email protected]> wrote: > Yogesh, you can use camel flatpack component to parse the csv records. > > And then use a Velocity template to output it to desired xml. > > Thanks > Ramesh > > On Thu, May 17, 2012 at 4:24 PM, Christian Mueller [via Camel] <[hidden > email] <http://user/SendEmail.jtp?type=node&node=5711614&i=0>> wrote: > >> You cannot use XSLT to transform a CSV file into XML... >> >> >> On Thu, May 17, 2012 at 10:19 PM, ychawla <[hidden >> email]<http://user/SendEmail.jtp?type=node&node=5711606&i=0>>wrote: >> >> >> > Hi Amby, >> > What about using a simple XSLT to go from the outputted format to your >> > desired format? It should be a pretty straight forward transformation. >> > >> > Thanks, >> > Yogesh >> > >> > -- >> > View this message in context: >> > >> http://camel.465427.n5.nabble.com/Converting-CSV-to-XML-tp5711086p5711598.html >> > Sent from the Camel - Users mailing list archive at Nabble.com. >> > >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the >> discussion below: >> >> http://camel.465427.n5.nabble.com/Converting-CSV-to-XML-tp5711086p5711606.html >> To start a new topic under Camel - Users, email [hidden >> email]<http://user/SendEmail.jtp?type=node&node=5711614&i=1> >> To unsubscribe from Camel - Users, click here. >> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >> > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://camel.465427.n5.nabble.com/Converting-CSV-to-XML-tp5711086p5711614.html > To unsubscribe from Converting CSV to XML, click > here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5711086&code=ZC5hbWJhcmlzaEBnbWFpbC5jb218NTcxMTA4NnwxODEyNzY3Njkw> > . > NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > ----- thanks Amby -- View this message in context: http://camel.465427.n5.nabble.com/Converting-CSV-to-XML-tp5711086p5711621.html Sent from the Camel - Users mailing list archive at Nabble.com.
