I\'m using the SAX xml parser to parse some xml data which contains newlines. When using Attributes#getValue, the newline data is lost. How can keep the newlines?
you can use this code when getting the String to parse:
public void characters(char ch[], int start, int length) { for(int i=start; i<length; i++) if(!Character.isISOControl(ch[i])) content.append(ch[i]); }
The solution was to use 
 instead of \n