XMLBeans does not escape whitespace characters in attribute values on output
----------------------------------------------------------------------------
Key: XMLBEANS-357
URL: https://issues.apache.org/jira/browse/XMLBEANS-357
Project: XMLBeans
Issue Type: Bug
Components: XmlObject
Affects Versions: Version 2.3
Reporter: Mark van Holsteijn
When XMLBeans parses an XML attribute that contains newline character entities,
it does preserve them but when the attribute value is sent to output the entity
is not preserve causing lose of information.
An example:
<document>
<property name="properties" value="
line 1

line 2

line 3

"/>
</document>
is outputted as
<document>
<property name="properties" value="
line 1
line 2
line 3
"/>
</document>
When this document is parsed again, the newlines in the attribute are lost (!)
Adding the newline character to the saveSubstituteCharacters option using an
XmlOptionsCharEscapeMap does not help for attribute values, only for elements.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]