Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5360

XmlParser and XmlSlurper strip whitespace text by default

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0-beta-2
    • None
    • XML Processing
    • None

    Description

      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.

      Attachments

        Activity

          People

            paulk Paul King
            russel Dr. Russel Winder
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: