You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Boris Kolpackov (JIRA)" <xe...@xml.apache.org> on 2008/09/16 15:18:44 UTC
[jira] Closed: (XERCESC-1823) CDATA pretty print outputs too many
new lines
[ https://issues.apache.org/jira/browse/XERCESC-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Boris Kolpackov closed XERCESC-1823.
------------------------------------
Resolution: Fixed
Fix Version/s: 3.0.0
Assignee: Boris Kolpackov
It is actually wrong to inject any whitespaces into a node with a CDATA section since they might be significant (for this same reason we don't do this for text nodes). The fix in SVN addresses this also for comments.
> CDATA pretty print outputs too many new lines
> ---------------------------------------------
>
> Key: XERCESC-1823
> URL: https://issues.apache.org/jira/browse/XERCESC-1823
> Project: Xerces-C++
> Issue Type: Bug
> Affects Versions: 2.8.0, 3.0.0
> Reporter: Mathieu Champlon
> Assignee: Boris Kolpackov
> Priority: Minor
> Fix For: 3.0.0
>
>
> Running DOMPrint on the following XML sample file :
> <root><![CDATA[some data]]></root>
> Using the following command line :
> $ ./DOMPrint.exe -wfpp=on cdata.xml
> Produces the following output :
> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
> <root>
> <![CDATA[some data]]>
> </root>
> Whereas I had expected :
> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
> <root>
> <![CDATA[some data]]>
> </root>
> Thanks !
> MAT.
--
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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org