title: Scala method to pretty print XML directly to a java.io.Writer (not a string)?
body: <p>The scala.xml.XML.write method supports outputting an XML node sequence to a java.io.Writer, for example in a servlet response. However, it doesn't seem to have an option to output the XML in pretty printed format. Is there any Scala standard library function to pretty print an XML node sequence to a java.io.Writer?</p>
  
  <p>Note: scala.xml.PrettyPrinter does not seem to be the answer because it only returns a string. The pretty printer would need to output directly to a java.io.Writer.</p>