Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
encoding/xml: line endings in data get replaced #24426
What version of Go are you using (
Did some more research on the topic:
Here on stackoverflow somebody argues that since this has to be done before parsing the xml parser does not yet know if the line ending is part of a CDATA section or not: stackoverflow
MSDN library states:
So I guess golang xml parser is correctly implemented and I should use base64 encoding to get line endings across.