a month ago - last edited a month ago
Hi Team
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
Request clarification before answering.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
30 | |
10 | |
8 | |
8 | |
7 | |
7 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.