Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.7.1
-
None
-
Patch
Description
XmlSlurper allows you to add nodes using this syntax:
def node = new XmlSlurper().parse(...) node.'filter' + { 'filter-name'('shirFilter') 'filter-class'('...') }
I would actually like to replace XmlSlurper in one part of Grails with DOMCategory, so it would be great if DOMCategory supported the same syntax.
I have attached a patch that implements the above and also adds a replaceNode() method and support for negative and range indices.