looking for software to convert multiple csv files to a single xml file
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
looking for software to convert multiple csv files to a single xml file
Does anyone know of any software that will convert a few csv's into a single xml?
I have a windows program that has been doing it up until now but the info is pulled from one of my linux servers and then sent back to it afterwards, im looking to script it all rather and keep everything on the linux box.
Does anyone know of any software that will convert a few csv's into a single xml?
I have a windows program that has been doing it up until now but the info is pulled from one of my linux servers and then sent back to it afterwards, im looking to script it all rather and keep everything on the linux box.
Well, you've got Perl available to you on Linux. Wouldn't take much to write a Perl program to do it...perl's got XML modules available for it, and you can tailor it to suit you.
Well, you've got Perl available to you on Linux. Wouldn't take much to write a Perl program to do it...perl's got XML modules available for it, and you can tailor it to suit you.
Thanks for the reply TBone,
I have checked that one out, it only takes a single input file at a time and ends up overwriting the file if try to write to it multiple times.
I was trying to avoid perl because i dont know it at all. Im very used to bash scripting but perl is new to me.
Maybe I should post something in the programming threads?
Maybe I should post something in the programming threads?
Maybe it's time to learn how to write computer programs. What you are doing now is called "programming by newsgroup". It is to programming what "suicide by police" is to interpersonal dynamics.
Thanks for the reply TBone,
I have checked that one out, it only takes a single input file at a time and ends up overwriting the file if try to write to it multiple times.
I was trying to avoid perl because i dont know it at all. Im very used to bash scripting but perl is new to me.
Maybe I should post something in the programming threads?
Well, since you're used to bash scripting, why not write a bash script to loop through all the file(s) you want, convert, and rename them, and use the csv2xml tool as just another utility in the bash script?
Well, since you're used to bash scripting, why not write a bash script to loop through all the file(s) you want, convert, and rename them, and use the csv2xml tool as just another utility in the bash script?
Thats not a bad idea at all.
I used to write C++ code so maybe its time to look into Perl. The only problem is that I would use it so seldom that its almost not worth learning
Thats not a bad idea at all.
I used to write C++ code so maybe its time to look into Perl. The only problem is that I would use it so seldom that its almost not worth learning
You'd be surprised...I used to write EVERYTHING in C/C++, until I learned Perl. The flexibility, portability, and modules to handle LOTS of different things, makes it hard to go back.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.