Hi everyone,
to the %subj%, I've tried:
def xp = new XmlParser(); def testsuite = xp.parseText( "<testsuite/>" ); def testsuite1 = new XmlParser().parse( "testsuite.xml" ); testsuite1.testcase.each { testsuite.append( it ); }
But this gives me an exception:
groovy.lang.MissingMethodException: No signature of method: groovy.util.Node.append() is applicable for argument types: (groovy.util.Node) values: {testcase ..., ... }
Despite of: http://groovy.codehaus.org/api/groovy/util/Node.html
says: boolean append(Node child)
So, how do I copy/move nodes between documents? (In a Groovy way - not using W3D DOM / JDOM...)
Thanks, Ondra