You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ji...@codehaus.org on 2003/09/04 23:24:23 UTC

[jira] Updated: (JELLY-18) XMLOutput with OutputFormat.setExpandEmptyElements(false) still expands empty elements

The following issue has been updated:

    Updater: Morgan Delagrange (mailto:mdelagra@yahoo.com)
       Date: Thu, 4 Sep 2003 4:23 PM
    Changes:
             timeoriginalestimate changed from 0
             timeestimate changed from 0 minutes
             Component changed to core / taglib.core
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=JELLY-18&page=history

---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=JELLY-18


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JELLY-18
    Summary: XMLOutput with OutputFormat.setExpandEmptyElements(false) still expands empty elements
       Type: Bug

     Status: Reopened
   Priority: Minor

 Time Spent: Unknown
  Remaining: Unknown

    Project: jelly
 Components: 
             core / taglib.core

   Assignee: peter royal
   Reporter: Brian Leonard

    Created: Wed, 11 Dec 2002 5:32 PM
    Updated: Thu, 4 Sep 2003 4:23 PM
Environment: Solaris/sparc with jdk 1.4.1

Description:
         // here we're creating an XMLOutput that doesn't
         // expand <element/> to <element></element>
         OutputStream out = new FileOutputStream(outFile);
         OutputFormat format = OutputFormat.createPrettyPrint();
         format.setExpandEmptyElements(false);
         XMLWriter xmlWriter = new XMLWriter(out, format);
         XMLOutput xmlOutput = new XMLOutput(xmlWriter);
        
         context.runScript(templateFile, xmlOutput);
         xmlOutput.flush();
         out.close();

The above code expands empty elements when it shouldn't.



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira