I am parsing a file using dom parser. I have an element <content> which contains two paragraphs of data. I have assigned this to a
string. As there is space between two paragraphs I tried to remove the empty spaces using string.trim(). It is not working. Can someone help me how to comeout of this and remove the empty spaces between two paragraphs.