private String documentToString(Document dom){
  StringBuffer buf=new StringBuffer();
  linearize(dom,buf);
  return buf.toString();
}

private String documentToString ( Document dom ) { StringBuffer buf = new StringBuffer ( ) ; linearize ( dom , buf ) ; return buf . toString ( ) ; }
converts the document to a string ( a placeholder for more sophisticated logic to be done ) .
