How to unzip a file from a folder, and then convert the XML document contained in this file, to a CSV format?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can simply use the
java.util.zip.*classes to unzip the content of a ZIPped file.Concerning your conversion from XML to CSV, it is difficult to tell you how you can achieve that without knowing the format of your XML data. However, the simplest thing is to parse the XML, then writing in parallel the content of your CSV file. The CSV format is really simple as it is only values separated by a specific character (generally a
,;or a tabulation).