I am usign jdk 1.5 I hear removAll shoudld do the trick.
I have a string buffer of xml
if i do ...
the newline characters, tabs do not dissapear
that does not work either, according to the debugger
I have a string buffer of xml
Code:
buf.append("NAME |\n");
buf.append("ID |\n");
buf.append("<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n");
buf.append("<xml>\n");
buf.append("</xml>\n");
Code:
String s = buf.toString();
s.replaceAll("\n","");
s.replaceAll("\t","");
Code:
String s = buf.toString();
s.replaceAll("\\n","");
s.replaceAll("\\t","");