Skip to content

Add option ignoreEmptyLines to CsvToXml #700

Description

@Hooghof

As a user I want to have the possibility to ignore empty lines if the CSV message body only contains header values and no lines. Currently an error occurs if I enable to use the first line in the CSV as header and there are no lines.

We could also decide to set ignoreEmptyLines standard on true (opinionated) and do not add a new option to the component.

The output could be as follows:

<?xml version="1.0" encoding="UTF-8"?>
<items/>

or in the case where there are new lines below the header line in the CSV

<?xml version="1.0" encoding="UTF-8"?>
<items>
    <item>
        <ID/>
        <Name/>
        <Number/>
    </item>
</items>

Jira: https://dovetailworld.atlassian.net/browse/FG-2630

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions