groovy

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

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 1.5
  • Fix Version/s: 1.5.2
  • Component/s: XML Processing
  • Labels:
    None
  • Number of attachments :
    0

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.

Issue Links

Activity

Hide
Paul King added a comment -

Do you have a particular use-case in mind?

Show
Paul King added a comment - Do you have a particular use-case in mind?
Hide
Paul King added a comment -

close off release 1.5.4

Show
Paul King added a comment - close off release 1.5.4

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: