Hi,
Does anyone know how to solve the problem described by Pedro?
Thanks,
LT
Hi there,
In my company we are also facing the same problem as Pedro.
Does anyone have a way to solve this garbage XMLRecords create?
Thanks.
André
Hi Andre,
I had the same problem not so long ago. I solved it using 2 regular expressions that remove the linebreak from the xml.
The first one finds the '>', the line break and then a new value that doesn't start with a '<'. It then removes that middle part, the linebreak:
So:
SyntaxEditor Code Snippet
"(>)(\s+[\r|\n|\r\n]\t+)([a-zA-Z0-9])"
The second one does the same, but then the other way arround, text - linebreak - </:
So for this I use:
"([a-zA-Z0-9])(\s+[\r|\n|\r\n]\t+)(</)"
I hope this helps.
Goodluck!
Lenmart,
Your solution worked like a charm. Many thanks for helping us out :)
If anyone needs this solution to work for English together with other foreign characters (like Chinese), you can use:
"([\p{L}0-9])" instead of "([a-zA-Z0-9])"
Lennart Kraak wrote: