Esempio n. 1
0
 public static String getContent(String tag, String text) {
   int idx = XmlUtils.getIndexOpeningTag(tag, text);
   if (idx == -1) {
     return "";
   }
   text = text.substring(idx);
   int end = XmlUtils.getIndexClosingTag(tag, text);
   idx = text.indexOf('>');
   if (idx == -1) {
     return "";
   }
   return text.substring(idx + 1, end);
 }