1/**
2 *
3 * @param firstString the string where you wan
4 * @param lastString
5 * @param replace the string between the firstString and lastString
6 * @param xml
7 * @return
8 */
9 public static String replaceStringBtwn(String firstString,String lastString,String replace,String stringBody){
10 return stringBody.split(firstString)[0]
11 +replace
12 +stringBody.split(lastString)[1];
13
14 }