Parse simplexml to string