title: Groovy XmlSlurper and inserting child nodes
body: <p>Is it possible to use the <a href="http://groovy.codehaus.org/Reading+XML+using+Groovy%27s+XmlSlurper" rel="nofollow">Groovy's XMLSlurper</a> and insert child nodes at an index?</p>
  
  <p>Currently the GPathResult class has putAt(index) and appendNode(). The first replaces the element at the index rather than inserting and the second adds to the end.</p>
  
  <p>I am tied to XmlSlurper rather than XmlParser unfortunately.</p>
  
  <p>Thanks.</p>