ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19113] New: - XMLJUnitResultFormatter fails to detect embedded CDATA sections
Date Thu, 17 Apr 2003 16:01:58 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19113>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19113

XMLJUnitResultFormatter fails to detect embedded CDATA sections

           Summary: XMLJUnitResultFormatter fails to detect embedded CDATA
                    sections
           Product: Ant
           Version: 1.5.3
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: goetze@dovetail.com
                CC: bl7385@momail.sbc.com


The formatOutput(String type, String output) method of the class 
XMLJUnitResultFormatter embeds the output string in a CDATA section.  If the 
output string itself has a CDATA section, an invalid XML file is produced. 

One way to solve this is to remove all CDATA section end delimiters from the 
output string prior to writing.

Mime
View raw message