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>&lt;?xml version=&quot;1.0&quot;  
encoding=&quot;UTF-8&quot;?>&lt;sensordata
name=&quot;path.delay.roundtrip&quot; 
resourceID=&quot;aaaaa&quot;>&lt;eventtime>1077637973125&lt;/eventtime>&lt;hostname>kim&lt;/hostname>&lt;destination>bridge.vcpc.univie.ac.at&lt;/destination>&lt;min>2&lt;/min>&lt;avg>2&lt;/avg>&lt;max>2&lt;/max>&lt;/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 " (&quote;)
character. For example, if the input is:
--------------
<elementContent>&lt;?xml version=&quot;1.0  encoding=&quot;UTF-8&quot;?>&lt;sensordata
name=&quot;path.delay.roundtrip&quot; ttt  
resourceID=&quot;aaaaa&quot;>&lt;eventtime>1077637973125&lt;/eventtime>&lt;hostname>kim&lt;/hostname>&lt;destination>bridge.vcpc.univie.ac.at&lt;/destin
ation>&lt;min>2&lt;/min>&lt;avg>2&lt;/avg>&lt;max>2&lt;/max>&lt;/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 &quot;), 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

Reply via email to