History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GROOVY-2415
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Paul King
Reporter: Marshall Schor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

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

Created: 18/Dec/07 01:57 PM   Updated: 08/Feb/08 01:26 AM
Component/s: XML Processing
Affects Version/s: 1.5
Fix Version/s: 1.5.2

Time Tracking:
Not Specified

Issue Links:
Related


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Paul King - 22/Dec/07 06:58 AM
Do you have a particular use-case in mind?

Paul King - 08/Feb/08 01:26 AM
close off release 1.5.4