예제 #1
0
 private static int getInt(Element element, String name) {
   if (element == null) {
     return -1;
   } else {
     String text = element.getChildTextTrim(name);
     return NumberUtils.stringToInt(text, -1);
   }
 }