title: org.w3c.dom.Document to XML string using Groovy
body: <p>I have an org.w3c.dom.Document instance which I need to convert to an XML string. I know how to do this in Java (using javax.xml.transform facilities), but I wondered whether there is a more "groovy" way of doing this?</p>
  
  <p>I've tried using a the DomToGroovy class, which successfully create a groovy script version of the DOM document. But I'm not sure how I would use this to generate an XML string. I might be barking up the wrong tree...</p>
  
  <p>Any help would be greatly appreciated!</p>