How about using String replace?
if (yourString.contains("<")){
yourString = yourString.replaceAll("<","<");
}
System.out.println(yourString);
You could read in the data and replace the characters then re-write out the .xml and everything will be correctly formatted.