pull xml to string