Frends.CSV.ConvertToXML / 1.6.0
Summary
Reads CSV text and emits XML, using the header row for element names and optional column definitions to decide types.
Typical use — feeding a delimited file into an XSLT or schema-validation step
Input parameters.
| Name | Type | Default | Example | Description |
|---|---|---|---|---|
| Csv | String |
– | 1;Foo;Bar |
Input csv string |
| Delimiter | String |
; |
; |
Delimiter. |
| ColumnSpecifications | ColumnSpecification[] |
– | [ { foo, String } ] |
You can map columns to specific types. The order of the columns are used for mapping, that means that the ColumnSpecification elements need to be created in the same order as the CSV fields. |