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

replaceNode improvements for XML processing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0-beta-1
    • 2.2.0-beta-2
    • None

    Description

      Groovy's XML processing has a few slightly inconsistent features and a small hole wrt replacing nodes.

      The replaceNode(Closure) method for DOMCategory returns the last added node rather than the removed node (making it inconsistent with the built-in replaceChild method) and equivalent methods for general collections (e.g. remove for ArrayList).

      Ditto for the corresponding method in XmlParser. Also, XmlParser lacks a replaceNode(Node) variant.

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: