[ 
https://issues.apache.org/jira/browse/GROOVY-5360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King updated GROOVY-5360:
------------------------------
    Fix Version/s:     (was: 3.x)

> XmlParser and XmlSlurper strip whitespace text by default
> ---------------------------------------------------------
>
>                 Key: GROOVY-5360
>                 URL: https://issues.apache.org/jira/browse/GROOVY-5360
>             Project: Groovy
>          Issue Type: Bug
>          Components: XML Processing
>    Affects Versions: 2.0-beta-2
>            Reporter: Dr. Russel Winder
>            Priority: Major
>
> Currently both XmlParser and XmlSlurper elide text that is only whitespace. 
> Surely it is for the application and not the parser to determine what to do 
> with whitespace that is not inside an opening or closing tag. Both classes 
> allow for changing the behaviour programatically. I argue that the current 
> default in not consistent with generally expected behaviour and so should be 
> changed. Clearly this is a breaking change and so should not happen in the 
> 1.8.x series. The 2.0.x series should take the opportunity to make this 
> change. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to