decode the xml buffer to a string