You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "James (JIRA)" <xm...@xml.apache.org> on 2009/01/22 16:41:59 UTC

[jira] Resolved: (XMLBEANS-393) CDATA text not properly handled for mixed content element types

     [ 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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org