Use simplexml lib to get xml working