Calling generateTableFromXMLFile doesn't return anything after calling it the first time. Programming is dumb.