It is not part of the XML spec to strip spaces from tag values. This is causing problems in a project I'm working on where things like:
<string>W3lcOme\ </string>
become
"W3lcOme\"
I tried to justify it by attempting to find something in the specification that says whitespace should be stripped, but all I could find was contrary documentation saying whitespace in tag text should be preserved.
It is not part of the XML spec to strip spaces from tag values. This is causing problems in a project I'm working on where things like:
become
I tried to justify it by attempting to find something in the specification that says whitespace should be stripped, but all I could find was contrary documentation saying whitespace in tag text should be preserved.