Jump to: navigation, search

Difference between revisions of "Activity:ReadCSVDocument (Activity)"


m (moved ReadCSVDocument (Activity) to ReadCSVDocument (Activity): Text replacement - "(.*)\(Activity\)" to "Activity:$1(Activity)")
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
The ReadXPathDocument Activity loads a CSV File into the workflow and transforms it into XML for further processing using [http://en.wikipedia.org/wiki/XPath XPath] expressions. It is the root activity for an import of CSV data into {{UBIK}}.
 +
 +
=Description=
 
{{ActivityInfoBox
 
{{ActivityInfoBox
 
| title = Read CSV Document
 
| title = Read CSV Document
Line 9: Line 12:
 
| version = 2.1.16+
 
| version = 2.1.16+
 
}}
 
}}
The ReadXPathDocument Activity loads a CSV File into the workflow and transforms it into XML for further processing using [http://en.wikipedia.org/wiki/XPath XPath] expressions. It is the root activity for an import of CSV data into {{UBIK}}.
 
  
==Arguments==
+
===Arguments===
 
{| class="wikitable sortable" | width = "50%"
 
{| class="wikitable sortable" | width = "50%"
 
|-
 
|-
Line 35: Line 37:
 
{{Attention|Using the InputEncoding "ANSI" means that the imported text is read according to the default [http://windows.microsoft.com/en-us/windows/change-system-locale Windows System Locale Setting] (e.g. English-US)!}}
 
{{Attention|Using the InputEncoding "ANSI" means that the imported text is read according to the default [http://windows.microsoft.com/en-us/windows/change-system-locale Windows System Locale Setting] (e.g. English-US)!}}
  
==Usage==
+
===Usage===
 +
This activity is typically used to start the import of CSV data by providing the loaded document to subsequent [[Activity:GetXPathResult|GetXPathResult]] activities.
  
This activity is typically used to start the import of CSV data by providing the loaded document to subsequent [[Activity GetXPathResult|GetXPathResult]] activities.
+
=Example=
  
==Example==
+
Load the CSV file C:\temp\test.CSV with the following content into the workflow:<br />
 
+
Load the CSV file C:\temp\test.CSV with the following content into the workflow:
+
  
 
<code>
 
<code>
Line 64: Line 65:
 
| Separator|| <source lang = "vbnet">";"C</source>
 
| Separator|| <source lang = "vbnet">";"C</source>
 
|}
 
|}
 +
 +
<headertabs />
  
 
==See also==
 
==See also==
 
* [[Workflow Designer]]
 
* [[Workflow Designer]]
* [[GetXPathResult (Activity)]]
+
* [[Activity:GetXPathResult (Activity)]]
  
[[Category:Activities]] [[Category:Interfacing]]
+
[[Category:CSV]]

Latest revision as of 12:36, 23 February 2015

The ReadXPathDocument Activity loads a CSV File into the workflow and transforms it into XML for further processing using XPath expressions. It is the root activity for an import of CSV data into UBIK®.

[edit]

Description

Read CSV Document
Name ReadCSVDocumnent
Purpose Load a CSV file as XPath document
Category Data Exchange
Returns True if successful
Version 2.1.16+

Arguments

Argument Type Direction Purpose
ColumnName String In The name of the generated XML element for a column; default is Column
FileName String In The full path to an accessible CSV file
FirstRowIsHeader Boolean In Set this to true to ignore the first line (i.e. because it contains header information), to false if the first line should also be processed
InputEncoding String In The name of the character encoding (e.g. "iso-8859-15") used for reading the input file - List of UBIK character encodings;
default is "UTF-8"
RowName String In The name of the generated XML element for a row; default is Row
Separator Char In The char that separates columns in the source file
XPathDocument XPathDocument Out The loaded file as XPath document, null if loading failed
Result Boolean Out Returns True on success, false on error
IC Attention.pngUsing the InputEncoding "ANSI" means that the imported text is read according to the default Windows System Locale Setting (e.g. English-US)!

Usage

This activity is typically used to start the import of CSV data by providing the loaded document to subsequent GetXPathResult activities.

Example

Load the CSV file C:\temp\test.CSV with the following content into the workflow:

FIRST NAME;LAST NAME;DATE OF BIRTH

John;Doe;01.01.1970

Jane;Doe;01.02.1971

Jebediah;Springfield;01.03.1774

Argument Value
FileName
"C:\temp\test.CSV"
FirstLineIsHeader
True
Separator
";"C

See also