This repository is archived and the tasks have been moved to https://github.com/CommunityHiQ/Frends.Community.Xml
FRENDS Task to convert JSON, CSV or fixed length to XML. Some Frends4 tasks already provide method .ToXML() and it is preferable to use it instead of this task.
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes
NOTE: Be sure to merge the latest from "upstream" before making a pull request!
Property | Type | Description | Example |
---|---|---|---|
Input | string | Supported formats JSON, CSV and fixed length | first;second;third |
Property | Type | Description | Example |
---|---|---|---|
CSVSeparator | CSVSeparator | CSV separator | ; |
ColumnLengths | array<int> | Column lengths of fixed lenght input. These are used if CSV separator is not defined. | |
InputHasHeaderRow | bool | Input has header row | false |
TrimOuputColumns | bool | Trim ouput columns of CVS input | true |
Property | Type | Description | Example |
---|---|---|---|
XMLRootElementName | string | Root name for when parsing JSON | Root |
AppendWith | string | Append numeric JSON fields with prefix | foo_ |
Property | Type | Description | Example |
---|---|---|---|
Result | string | Result as XML | <NewDataSet><Table1><Column1>first</Column1><Column2>second</Column2><Column3>third</Column3></Table1></NewDataSet> |
This project is licensed under the MIT License - see the LICENSE file for details
Version | Changes |
---|---|
1.0.0 | Initial version of ConvertToXML |
1.2.0 | Task no longer use Frends.Task.Attributes |