code: public long getLong(String attribute, String namespace, long defaultValue) {
          String value = get(attribute, namespace);
          if (value == null) {
              return defaultValue;
          }
          return Long.parseLong(value);
      }
docs: Retrieve an integer attribute or the default value if not exists.
  @param attribute the attribute name
  @param namespace the attribute namespace URI
  @param defaultValue the default value to return
  @return the value