public static Document openDocumentFile(String filePath,Class c){
  if (filePath == null) {
    String message=Logging.getMessage("nullValue.FileIsNull");
    throw new IllegalArgumentException(message);
  }
  InputStream inputStream=WWIO.openFileOrResourceStream(filePath,c);
  return inputStream != null ? openDocumentStream(inputStream) : null;
}

public static Document openDocumentFile ( String filePath , Class c ) { if ( filePath == null ) { String message = Logging . getMessage ( "nullValue.FileIsNull" ) ; throw new IllegalArgumentException ( message ) ; } InputStream inputStream = WWIO . openFileOrResourceStream ( filePath , c ) ; return inputStream != null ? openDocumentStream ( inputStream ) : null ; }
opens an xml file given the file ' s location in the file system or on the classpath .
