I\'m attempting to read local file (that user inputted) as xml. Following code stright up fails due to the fact that global \'xml\' variable remains null in all other scopes