Fixed output XML to string.