End-of-Line replaced by spaces inside of the string values mapped to attributes
-------------------------------------------------------------------------------

                 Key: JIBX-180
                 URL: http://jira.codehaus.org/browse/JIBX-180
             Project: JiBX
          Issue Type: Bug
          Components: core
    Affects Versions: JiBX 1.1.5, JiBX 1.0.1
         Environment: I use IuBX 1.0.1, but the code analysis have shown that 
the same problem is likely to be relevant for JiBX 1.1.5 too.
            Reporter: Dimitry Polivaev


I experience an asymmetric behavior of marshaller and unmarshaller for 
strings containing End-Of-Line character '\n' when such strings are 
mapped to xml - attributes:

The marshaller preserves all '\n' characters and does not substitute 
them by e.g. "
" . 

The parser org.xmlpull.mxp1.MXParser erplaces all '\n' characters inside of 
attribute values by spaces. 

As a result the content of the objects changes after marshalling / 
unmarshalling procedure. Although there is a workaround (saving strings as XML 
elements and not as Attributes), I think that this behavior should be corrected 
or the '\n' characters in strings mapped to attributes should be prohibited.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
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-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to