Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 1.5
-
Fix Version/s: 1.5.2
-
Component/s: XML Processing
-
Labels:None
-
Number of attachments :
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
| This issue relates to: | ||||
| GROOVY-2429 | Allow subclasses of XmlParser to customize creation of new Nodes |
|
|
|
| This issue is related to: | ||||
| GROOVY-2414 | Extend XmlParser and Node to allow subclassing, permitting additional capabilities to reuse basic functionality |
|
|
|
Do you have a particular use-case in mind?