public static String docToString(Document dom){
  return XMLUtils.docToString1(dom);
}

public static String docToString ( Document dom ) { return XMLUtils . docToString1 ( dom ) ; }
converts doc to string
