Hi all, Few days ago I reported the problem in which when castor unmarshals an element typed string, some space characters are missing. E.g.
an element named "elementContent" has the following value: --------- <elementContent><?xml version="1.0" encoding="UTF-8"?><sensordata name="path.delay.roundtrip" resourceID="aaaaa"><eventtime>1077637973125</eventtime><hostname>kim</hostname><destination>bridge.vcpc.univie.ac.at</destination><min>2</min><avg>2</avg><max>2</max></sensordata></elementContent> ------------ the result of the unmarshal is: -------- <?xml version="1.0"encoding="UTF-8"?><sensordata name="path.delay.roundtrip"resourceID="aaaaa"><eventtime>1077637973125</eventtime><hostname>kim</hostname><destination>bridge.vcpc.univie.ac.at</destination><min>2</min><avg>2</avg><max>2</max></sensordata> --------- we lost two space characters: before "encoding" and before "resource". Unfortunately, I did not get any help so far. I tried to test several cases and found out that We lost space character only after " ("e;) character. For example, if the input is: -------------- <elementContent><?xml version="1.0 encoding="UTF-8"?><sensordata name="path.delay.roundtrip" ttt resourceID="aaaaa"><eventtime>1077637973125</eventtime><hostname>kim</hostname><destination>bridge.vcpc.univie.ac.at</destin ation><min>2</min><avg>2</avg><max>2</max></sensordata></elementContent> ------------- the result is: ----------------- <?xml version="1.0 encoding="UTF-8"?><sensordata name="path.delay.roundtrip"ttt resourceID="aaaaa"><eventtime>1077637973125</eventtime><hostname>kim</hostname><destination>bridge.vcpc.univie.ac.at</destin ation><min>2</min><avg>2</avg><max>2</max></sensordata> ------------------- you see: space between ...1.0 encoding... is not deleted (the same for the one between ...ttt resourceID.... However space between: ... "path.delay.roundtrip" ttt .... is lost. The conclusion is if a space character followed a quote character (" or "), castor deleted the space character. Is it a bug? Linh. ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev