public static String replaceAHref(String xml){
String retxml =null;
//<a href="http://www.example.com/index.htm"></a>
Document doc = Jsoup.parse(xml);
Elements elments = doc.getElementsByTag("a");
for(Element e:elments){
String href = e.attr("href");
if(href.startsWith("/")){
e.attr("href",URI+href);
}
}
retxml = doc.toString();
elments=null;
doc=null;
return retxml;
}