Pushed the template parameter to the constructor for XMLParser instead of the parse method.