dbojan / csv2xml

csv2xml, convert csv or tsv files to xml files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

csv2xml

csv2xml, version 2023-09-30-2

convert CSV or TSV files to "Excel xml files" using command line, or drag and drop CSV file to this program in Windows.

"Excel XML 2003 spreadsheet file" xml, can be used instead of Excel .xlsx file, and can be opened and save in Excel. (This type of xml is also known as SpreadsheetML)

You can open it in Excel, or Libre Office Calc program.

Can be used as an replacement for command line programs like csv2xlsx, csv2xls, csv2ods, csv2fods, or tsv2xml, tsv2ods, tsv2xlsx, tsv2xls ...

String delimiter ("") is not supported, so be careful when using , as column delimiter. Tab separated file as in input file is recommended, if posssible. UTF-8.

Semicolon file as input is also suported.

OS: Windows. Language: windows batch, powershell (for replacing utf-8)

Downloand:

Right click here, select 'Save Link As' to save zip file. Unzip it somewhere.

optional:

Run 'shell_open_sendto_folder.bat' Create shortcut to csv2xml.bat in newly opened "send to folder": by dragging csv2xml.bat to sendto folder using right mouse click. Select 'create shortcuts here'. or use start/run, enter shell:sendto to open same folder, repeat drag and drop.

Usage:

drag and drop csv or tsv to csv2xml.bat

if you created shortcut in sendto folder, you can: right click on csv file, select send to, and pick csv2xml.bat

XML file will be created in the same folder as csv file.

Libre Office Calc can open xml, but cannot save it, it will offer to save in ods or xlsx format.

changes

-0.98c & is no longer automatically removed. XML works fine in Excel.

-2023-09-30-1 auto replace of < > ' " &

-2023-09-30-2 using .replace instead of -replace in powershell

-- dbojan.github.io

About

csv2xml, convert csv or tsv files to xml files.

License:BSD 2-Clause "Simplified" License