code: public static MissionSpec loadMissionXML(String filename) {
          MissionSpec mission = null;
          try {
              String xml = new String(Files.readAllBytes(Paths.get(filename)));
              mission = new MissionSpec(xml, true);
          } catch (Exception e) {
              //e.printStackTrace();
              throw new RuntimeException( e );
          }
  
          return mission;
      }
docs: Convenience method to load a Malmo mission specification from an XML-file
  @param filename name of XML file
  @return Mission specification loaded from XML-file