title: XMLSlurper appendNode does not see changes
body: <p>I am having troubles using XMLSlurper to update an XML document.  Most things work, but in some situations a "find" doesn't find a Node I just appended (appendNode).  The new Node is there at the end of processing, but is not found when I am in the middle of adding children.</p>
  
  <p>I found a post about XMLSlurper that says that finding the new Node requires calling parseText again and/or StreaMarkupBuilder (see below).  Really?!  That seems so kludgy that I thought I'd verify on SO.</p>
  
  <p>Here is a code snippet.  The "find" gets NoChildren even though the Node was just added.</p>
  
  <pre><code>    codeNode.appendNode {   
      'lab:vendorData'() {}
  }
  vendorNode = codeNode.children().find { it.name() == "vendorData" } 
  </code></pre>
  
  <blockquote>
    <p>"appendNode doea not modify the slurped document directly. The edit is applied "on the fly" when the document is written out using StreamingMarkupBuilder."
         <a href="http://markmail.org/message/5nmxbhwna7hr5zcq#query:related%3A5nmxbhwna7hr5zcq+page:1+mid:bkdesettsnfnieno+state:results" rel="nofollow">http://markmail.org/message/5nmxbhwna7hr5zcq#query:related%3A5nmxbhwna7hr5zcq+page:1+mid:bkdesettsnfnieno+state:results</a></p>
  </blockquote>
  
  <p>Why can't I find my new Node?!</p>