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

Add 1 argument constructor to groovy.util.Node, and corresponding groovy.util.XmlParser appendNode('someElementName') method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.5
    • 1.5.2
    • XML Processing
    • None

    Description

      The XmlParser appendNode(...) methods come in several signatures:
      appendNode('element-name', map-of-attribute-values)
      appendNode('element-name', list-of-nested-elements-or-text-or-other-value-except-a-Map)
      appendNode('element-name', map-of-attribute-values, list-of-nested-elements-or-text-or-other-value)

      However, there is no method for adding just an element, with no attributes or values specified.

      This Jira issue would add such a method, and also add a corresponding constructor to Node, which also is missing the constructor that creates a new Node without a map of attributes and without a value specification.

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              schor Marshall Schor
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: