public static String domToString(Document domDoc){
  return domToString(domDoc.getDocumentElement(),false);
}

public static String domToString ( Document domDoc ) { return domToString ( domDoc . getDocumentElement ( ) , false ) ; }
converts a dom to a string
