Added function for testing XML input