Making sure the xml is passed correctly