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

replaceNode improvements for XML processing

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0-beta-1
    • Fix Version/s: 2.2.0-beta-2
    • Component/s: None
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: