项目作者: ITAgnesmeyer

项目描述 :
Tool converts XML to CSV
高级语言: C#
项目地址: git://github.com/ITAgnesmeyer/XmlToCsv.git
创建时间: 2018-01-26T09:51:48Z
项目社区:https://github.com/ITAgnesmeyer/XmlToCsv

开源协议:MIT License

下载


XmlToCsv

Description:

XmlToCsv is a tool to convert XML-Files to CSV files.

Remarks

The CSV-files are seperated by (;) and text-columns are Quoted by (“).

Text-columns will be cleaned:

  • NewLine will be removed.
  • Quotes (“) will be replaced with (‘’)
  • (#) will be replaced with (*).

Parameters

  1. -i, --input Required. Input XML file to read.
  2. -o, --output Required. Output Folder for destination Files
  3. -j, --json Input Json File to read
  4. --help Display this help screen.
  5. --version Display version information.

in the rootfolder of the project, you can find a batchfile to create a merged (ILMerge by Microsoft) version of the relese executable.

simly call:

  1. <repository>\XmlToCsv\>xmltocsv

The merged file will be written to the “merged” folder in the “bin” Directory

Examples:

Sample 1
  1. xmltocsv -i test.xml -o c:\temp

The file “test.xml” will be converted to CSV-files in the folder “C:\temp”

Sample 2

If the parameter -j/—json is given then the JSON-file will be convierted to the given -i file.

  1. xmltocsv -i test.xml -o c:\temp -j some.json

In this case the file “some.json” will be converted to “test.xml” and these file will be converted to CSV-Files in the folder “C:\temp”.