when I generate xml output I can see the end of line character shows LF. bank requires it as CRLF. need help how to fix this.
Asked
Active
Viewed 42 times
0
-
I'm not aware of any XML serializer that provides such an option. Logically, it's not needed, because if they're using a conformant XML parser then it's totally unnecessary. Sad thing is, even big outfits like banks are sometimes amazingly incompetent in their handling of XML. I think you're going to have to filter the output to add the CR characters, eg. using a custom OutputStream implementation. – Michael Kay Nov 09 '22 at 14:12
-
Very harsh towards banks, @MichaelKay – al.truisme Nov 09 '22 at 16:15
-
May be [this](https://stackoverflow.com/questions/723226/producing-a-new-line-in-xslt) will help – Ptit Xav Nov 10 '22 at 09:44
1 Answers
0
I'm not aware of any XML serializer that provides such an option. Logically, it's not needed, because if they're using a conformant XML parser then it's totally unnecessary. If you can't educate the bank to do things properly, I think you're going to have to filter the output to add the CR characters, eg. by using a custom OutputStream
implementation

Michael Kay
- 156,231
- 11
- 92
- 164