cancel
Showing results for 
Search instead for 
Did you mean: 

Remove spaces in header in IFLOW

Consultor2024
Explorer
0 Kudos
149

Hi Team

Consultor2024_0-1731467367370.png

I want to convert a csv file to an xml file, but when I'm creating the xsd file there are errors because there are spaces in the header tags

How can I remove spaces in the header?

Should I use groovy script?

Thanks in advance

 

View Entire Topic
Bais
Participant

Sure you can use a groovy script for do anything, csv too.

replaceAll(' ','')  remove space, you can put _  for space if you want just do replaceAll(' ','_')

def body = message.getBody(String);

body = body.replaceAll(' ','_');

message.setBody(body)

Bais
Participant
0 Kudos
you can use chatGpt for these questions 🙂