In my case the whitespace is part of the value of the data element. and not just insignificant whitespace between markup tags.
(I ran into this issue when a transaction failed because the receiving application did not expect leading spaces. I was using PSPad to reformat the log files to beautify them for readability and did not see the leading spaces. When the receiving application insisted that the leading spaces were there, I went back to the logs and noticed that leading spaces were present *before* PSPad beautified the text but not after.) NOTE: I have tried other xml reformat tools and they preserve the whitespace in the data elements, which is why i raised this issue. I loaded the following: <?xml version="1.0" encoding="UTF-8"?><TestStructure><leadingSpace> leading_space</leadingSpace><twoLeadingSpace> leading_space</twoLeadingSpace><trailingSpace>trailing_space </trailingSpace></TestStructure> Into the following tools: I tried First Object XML editor application (a freeware xml editor) http://www.firstobject.com/dn_editor.htm .. preserves whitespace I also tried several online tools: http://www.webtoolkitonline.com/xml-formatter.html .. preserves whitespace http://xmltoolbox.appspot.com/ .. preserves whitespace http://codebeautify.org/xmlviewer .. preserves whitespace http://xmlbeautifier.com/ .. preserves whitespace -- <http://forum.pspad.com/read.php?4,64997,65007> PSPad freeware editor http://www.pspad.com
