remove extra characters from xml