hi Vanshul

Thanks for the help.

But i am struggling to understand how xslt works.

I found this information on internet - it says

xslt:templateName[?options]

Where *templateName* is the classpath-local URI of the template to invoke;
or the complete URL of the remote template
what exactly is  *template* ? and how will it help me to convert xml to csv
?

from("activemq:My.Queue").
  to("xslt:com/acme/mytransform.xsl");


*what does the above sample code do ?*


On Fri, Apr 24, 2015 at 3:23 AM, Vanshul.Chawla [via Camel] <
ml-node+s465427n5766282...@n5.nabble.com> wrote:

> Hi Neha,
>
> 1. Use bindy(Java way)
> 2. Use xslt
>
> Get the message from from uri, send it to java code or xslt which u prefer
> and then send to to uri
>
> I am not a java guy so prefer xslt
>
> If flat file is fixed length, substring will help while creating elements
> If its csv or any delimited, google and you will get recursive functions
> in xslt which will parse the file and create out structure.
>
> Thanks and Regards,
>
> Vanshul Chawla
>
> -----Original Message-----
> From: nehachauhan1029 [mailto:[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5766282&i=0>]
> Sent: Thursday, April 23, 2015 11:50 PM
> To: [hidden email] <http:///user/SendEmail.jtp?type=node&node=5766282&i=1>
> Subject: How to convert flat file to xml using camel ?
>
> i have a requirement in my project to convert flat file to xml . How can i
> achieve this using camel ?
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/How-to-convert-flat-file-to-xml-using-camel-tp5766241.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/How-to-convert-flat-file-to-xml-using-camel-tp5766241p5766282.html
>  To unsubscribe from How to convert flat file to xml using camel ?, click
> here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5766241&code=bmVoYWNoYXVoYW4xMDI5QGdtYWlsLmNvbXw1NzY2MjQxfC0xOTUwNTY5Mzgz>
> .
> 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>
>




--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-convert-flat-file-to-xml-using-camel-tp5766241p5766303.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to