public static Integer selectInteger(XPathExpression expr,Node context){
  String value=selectText(expr,context);
  if (StringUtils.isNotBlank(value)) {
    try {
      return Integer.parseInt(value);
    }
 catch (    NumberFormatException e) {
      return null;
    }
  }
 else {
    return null;
  }
}

public static Integer selectInteger ( XPathExpression expr , Node context ) { String value = selectText ( expr , context ) ; if ( StringUtils . isNotBlank ( value ) ) { try { return Integer . parseInt ( value ) ; } catch ( NumberFormatException e ) { return null ; } } else { return null ; } }
evaluates the xpath expression as an integer .
