Tested xmlData function, fixed one bug