XML : How to remove an element in Groovy using XmlSlurper?

For example, how can I remove the one tag in the following code?

  def rootNode = new XmlSlurper().parseText(      '<root><one a1="uno!"/><two>Some text!</two></root>' )    

No comments:

Post a Comment