Skip to content

XmlToCsv

aelassas edited this page Nov 12, 2022 · 1 revision
<?xml version="1.0" encoding="utf-8" ?>
<Tasks>
  <!--
    XmlToCsv is a sequential task that converts an XML file to a CSV file.
    The format of the XML file is as follows:
    <Lines>
	    <Line>
		    <Column>$string</Column>
		    <Column>$string</Column>
		    <Column>$string</Column>
	    </Line>
	    <Line>
		    <Column>$string</Column>
		    <Column>$string</Column>
		    <Column>$string</Column>
	    </Line>
	    ...
    </Lines>
    
    The CSV files generated will be loaded by this task so that other
    tasks can select them through the selectFiles option.
  -->
  <Task id="$int" name="XmlToCsv" description="$string" enabled="true|false">
    <!-- 
      The XML files loaded by the task having as id $taskId will be
      transformed to CSV files.
    -->
    <Setting name="selectFiles" value="$taskId" />
    <Setting name="selectFiles" value="$taskId" />
    <!-- You can add as many selecteFiles as you want.-->
    <!-- Optional and defaults to ';'. The separtor character in the CSV files.-->
    <Setting name="separator" value="$string" />
    <!-- Optional and defaults to empty string. The quote character for the values. example: ' or &quot;-->
    <Setting name="quote" value="$string" />

    <!-- Optional. Samba computer name. -->
    <Setting name="smbComputerName" value="$string" />
    <!-- Optional. Samba domain name. -->
    <Setting name="smbDomain" value="$string" />
    <!-- Optional. Samba username. -->
    <Setting name="smbUsername" value="$string" />
    <!-- Optional. Samba password. -->
    <Setting name="smbPassword" value="$string" />
  </Task>
</Tasks>
Clone this wiki locally