[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Issue Comment Edited: (XMLBEANS-22) xmlText trims whitespace
From:       "Harry Lafford (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2008-02-20 4:10:44
Message-ID: 271938264.1203480644606.JavaMail.jira () brutus
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/XMLBEANS-22?page=com.atlassian.jira.plugin \
.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570563#action_12570563 ] 

rudraksh edited comment on XMLBEANS-22 at 2/19/08 8:09 PM:
----------------------------------------------------------------

Hi ,

I am presently running into a similar issue. Can somebody post the fix for this issue \
?

Regards,
Harry

      was (Author: rudraksh):
    Hi ,

I am presently running into a similar issue. Can somebody post the fix for this issue \
?

Regards,
Rudraksh
  
> xmlText trims whitespace within elements if prettyprint is on
> -------------------------------------------------------------
> 
> Key: XMLBEANS-22
> URL: https://issues.apache.org/jira/browse/XMLBEANS-22
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 1
> Environment: Java 1.4.2_03, Win 2K
> Reporter: Aaron Dunlop
> Fix For: TBD
> 
> Attachments: whitespace-patch
> 
> 
> 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.

-- 
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic