On the community website on converting there is a link to a command line tool called csv2xml. Since it is unmaintained you might want to choose another option.
There is also mention of a java tool called csv2xml (warning: website is in German) and a command line tool called ff-extractor.
The link also has references to Python, Perl, PHP, XSLT but that means you need to code the converter yourself.
If the file is an XML table, you can open it in LibreOffice Calc through the Data > XML Source menu1. Inside it, you just need to open the XML file, point to the table you're importing on the left column and specify a destination in your sheet in the right text field. Example:
1Since this is an experimental feature (at least in V 6.1.3.2), it may be unreliable and the menu entry will be greyed out unless experimental features are enabled with Tools – Options – LibreOffice – Advanced – Enable experimental features.
Best Answer
On the community website on converting there is a link to a command line tool called csv2xml. Since it is unmaintained you might want to choose another option.
There is also mention of a java tool called csv2xml (warning: website is in German) and a command line tool called ff-extractor.
The link also has references to Python, Perl, PHP, XSLT but that means you need to code the converter yourself.