groovy
  1. groovy
  2. GROOVY-6678

XmlParser should provide a trimIgnorableWhitespace setting

    Details

    • Number of attachments :
      0

      Description

      Many parsers allow whitespace outside nodes to be ignored while ensuring whitespace within nodes is preserved. In attempting to allow the former, XmlParser also trims text content within nodes which is often not desirable. This issue adds an additional flag that allows the ignorable whitespace to be handled separately. This will also potentially assist finding a solution/migration path for GROOVY-5360.

        Activity

        Hide
        Paul King added a comment -

        The behavior is generally identical to how it was before but there is one edge case where if you previously set trimWhitespace to false, you might now need to set both trimWhitespace and trimIgnorableWhitespace to false.

        Show
        Paul King added a comment - The behavior is generally identical to how it was before but there is one edge case where if you previously set trimWhitespace to false, you might now need to set both trimWhitespace and trimIgnorableWhitespace to false.

          People

          • Assignee:
            Paul King
            Reporter:
            Paul King
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: