You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by ji...@apache.org on 2004/02/12 01:12:51 UTC
[jira] Created: (XMLBEANS-22) xmlText trims whitespace within elements if prettyprint is on
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://nagoya.apache.org/jira/secure/ViewIssue.jspa?key=XMLBEANS-22
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XMLBEANS-22
Summary: xmlText trims whitespace within elements if prettyprint is on
Type: Bug
Status: Unassigned
Priority: Major
Project: XMLBeans
Versions:
Version 1
Assignee:
Reporter: Aaron Dunlop
Created: Wed, 11 Feb 2004 4:11 PM
Updated: Wed, 11 Feb 2004 4:11 PM
Environment: Java 1.4.2_03, Win 2K
Description:
When called with XmlOptions.SAVE_PRETTY_PRINT, xmlText trims whitespace within an element - e.g., ' a ' is converted to 'a'.
Unless I'm completely missing something, the formatter shouldn't ever change the contents of an element.
The following test snippet reveals the problem:
XmlObject xdoc = XmlObject.Factory.parse("<test> </test>");
Assert.assertEquals("<test> </test>", xdoc.xmlText());
Assert.assertEquals("<test> </test>" + newLine, xdoc.toString());
The current build from CVS returns <test/>[newline] instead of <test> <test>[newline].
Complete testcase and patch to follow.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
- ---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/