private static void query(String filename) throws Exception
   {
      ProjectFile mpx = new UniversalProjectReader().read(filename);

      listProjectProperties(mpx);

      listResources(mpx);

      listTasks(mpx);

      listAssignments(mpx);

      listAssignmentsByTask(mpx);

      listAssignmentsByResource(mpx);

      listHierarchy(mpx);

      listTaskNotes(mpx);

      listResourceNotes(mpx);

      listRelationships(mpx);

      listSlack(mpx);

      listCalendars(mpx);

   }
private static void query ( String filename ) throws Exception { ProjectFile mpx = new UniversalProjectReader ( ) . read ( filename ) ; listProjectProperties ( mpx ) ; listResources ( mpx ) ; listTasks ( mpx ) ; listAssignments ( mpx ) ; listAssignmentsByTask ( mpx ) ; listAssignmentsByResource ( mpx ) ; listHierarchy ( mpx ) ; listTaskNotes ( mpx ) ; listResourceNotes ( mpx ) ; listRelationships ( mpx ) ; listSlack ( mpx ) ; listCalendars ( mpx ) ; }
This method performs a set of queries to retrieve information
from the an MPP or an MPX file.

@param filename name of the MPX file
@throws Exception on file read error