code: public static void toWriter(Node node, Writer writer) throws TransformerException {
  		toWriter(node, writer, new HashMap<String, String>());
  	}
docs: Writes an XML node to a writer.
  @param node the XML node
  @param writer the writer
  @throws TransformerException if there's a problem writing to the writer