static boolean isAppXml(String mime){
  return mime != null && (mime.equals("application/xml") || mime.equals("application/xml-dtd") || mime.equals("application/xml-external-parsed-entity")|| mime.startsWith("application/") && mime.endsWith("+xml"));
}

static boolean isAppXml ( String mime ) { return mime != null && ( mime . equals ( "application/xml" ) || mime . equals ( "application/xml-dtd" ) || mime . equals ( "application/xml-external-parsed-entity" ) || mime . startsWith ( "application/" ) && mime . endsWith ( "+xml" ) ) ; }
indicates if the mime type belongs to the application xml family .
