Created/used new method to easily catch XML output