Just to add to the above, the data I am trying to parse is between a
set of tags, not the whole xml file.
> Hi,
>
[quoted text clipped - 18 lines]
>
> Any help would be appreciated.
I think we need a bit more detail. For example, here's my guess at
what's going on in your situation. Can you say whether this guess is
correct, and if not, what's wrong with it?
You have some input string "Hello World".
You encrypt it, to get some encrypted String "ABCDEFG".
You use Castor to unmarshall it into an XML document, "<xml>ABCDEFG</xml>"
If you just process the XML document locally, you can successfully extract
the encrypted string, and decrypt it.
If you try to send the XML document over the network, some mysterious
control characters, in the form of whitespace, appear, "<xml>ABCDEFG
</xml>", and you have to do some whitespace trimming to fix things.
Is this correct?
- Oliver
mikew01 - 21 Mar 2007 10:11 GMT
Yes, Ive found out what Castor does now by capturing its output before
and after, the examples below show the results.
A string longer than 55 chars is carriage returned 
, apparently
this option is configurable to turn on off but I think Ill stick with
my first approach to trim whitespace before decrypting.
Thanks.
g74gqWaH7aIoQ88XEl//r/
GZHnnoL0VRVsgLyTMN7xHzJtWAUdfP05oQ2EYYuPYVXzK2h8GbZM5S
2Qy5K0kso
+0RICTRka6ypLfTV9s6H7goSZnLYMXHh0Vsyw2HH1A8ZU1WBckSqntNEIyRqSPm7TYk
98ByM9+fG1l0+kDn4OFwZCSebJQMaGLpkenryfV0AyKFTKDwfX9cD3gd10nGy3zZGwSmQleBZEAJ
JTTtyfqjAwEuIr6xkRYbyiAHiq2l6uz+V1F8H2uNbbgfy0QuYj40F3nIVMxUVHUu/
WaIOD45Otvt
3Ts7nCJtJSCznd2oNHhT8AHZ1Ylk4NRCt5gAxPJ1KR98oYsN3wSVXi3vXH6QDmKBG
+HJCpAti2g/
TXIFYOfA4m3YRZc7ygzqvMUgApNuHZt/mafqXJDT9aIy8mD48383kR2YdHoCRCAzGOTk
g74gqWaH7aIoQ88XEl//r/
GZHnnoL0VRVsgLyTMN7xHzJtWAUdfP05oQ2EYYuPYVXzK2h8GbZM5S
2Qy5K0kso
+0RICTRka6ypLfTV9s6H7goSZnLYMXHh0Vsyw2HH1A8ZU1WBckSqntNEIyRqSPm7TYk
98ByM9+fG1l0+kDn4OFwZCSebJQMaGLpkenryfV0AyKFTKDwfX9cD3gd10nGy3zZGwSmQleBZEAJ
JTTtyfqjAwEuIr6xkRYbyiAHiq2l6uz+V1F8H2uNbbgfy0QuYj40F3nIVMxUVHUu/
WaIOD45Otvt
3Ts7nCJtJSCznd2oNHhT8AHZ1Ylk4NRCt5gAxPJ1KR98oYsN3wSVXi3vXH6QDmKBG
+HJCpAti2g/
TXIFYOfA4m3YRZc7ygzqvMUgApNuHZt/mafqXJDT9aIy8mD48383kR2YdHoCRCAzGOTk