how to remove the white spaces while converting data to XML format

Plz help on this issue . i get an error of “the xml tag should not contain white spaces”…what do i do to remove this error?

thanx