Modify function to recive a file(only xml for now) to calculate ppis, return a json