This is an interesting issue. I don't consider it a bug, since carriage
returns are not required to be escaped (unlike the other characters
which are handled by the escapers) - but I can understand that people
might want to have them preserved in string-valued attributes, and it's
true that the only way to do that is by escaping them. I'll make this
change in the prebuilt escapers for 1.1.6. I see there's actually some
unnecessary code in the attribute escapers now, where I
copied-and-pasted the CDATA handling from the character data escapers,
and I can eliminate that at the same time.

Of course, then that's going to bring up the issue that in normal text,
line endings (CR, LF, or CR/LF) are replaced by single LF. But I suppose
that's a sufficiently different situation not to cause problems.

  - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Francois Valdy wrote:
> I think you're having the same issue I had:
> JIBX UTF8Escaper is bugged and serializes cariage return in attributes
> (not escaping them).
>
> You can write your own escaper that fixes this bug, it's only a 5 lines work.
>
> Cheers
>
> On 8/15/07, Christian Foltin <[EMAIL PROTECTED]> wrote:
>   
>> Dear all,
>>
>> we have problems to marshal/unmarshal string attributes that contain 
>> newlines. They are substituted by space. Is it possible to change this 
>> behaviour?
>>
>> (Also stated in http://jira.codehaus.org/browse/JIBX-180 )
>>
>> Best regards, Chris
>> --
>> GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
>> Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems?  Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >>  http://get.splunk.com/
>> _______________________________________________
>> jibx-users mailing list
>> jibx-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jibx-users
>>
>>     
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to