[
https://issues.apache.org/jira/browse/XMLBEANS-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James resolved XMLBEANS-393.
----------------------------
Resolution: Invalid
Fix Version/s: Version 2.4
This behavior was caused by the use of the setTextValue() and getTextValue()
methods. An acceptable solution was implemented using getChars() and
removeChars() instead.
> CDATA text not properly handled for mixed content element types
> ---------------------------------------------------------------
>
> Key: XMLBEANS-393
> URL: https://issues.apache.org/jira/browse/XMLBEANS-393
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 2.4
> Reporter: James
> Fix For: Version 2.4
>
>
> Using the new CDATA XMLBookmark for elements with mixed content causes
> invalid XML to be generated. For example, the following input:
> <?xml version="1.0"?>
> <animal><![CDATA[yellow]]>
> <elephant>
> <![CDATA[red]]>
> </elephant>
> </animal>
> Is displayed as follows after having been parsed using the
> useCDataBookmarks(true) XmlOptions:
> <?xml version="1.0"?>
> <animal><![CDATA[yellow
> red
> ]]</animal>
> Notice that the <elephant> element is missing.
--
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]