I have facing issue while reading xml file. At the start of file it will append unwanted character..like ï»؟< xml file is like 25000 lines I used below code..
br = new BufferedReader(new FileReader("XXXXX.xml"));
while ((sCurrentLine = br.readLine()) != null) {
//System.out.println(sCurrentLine);
sb.append(sCurrentLine);
}
Please help to solve this. How can I remove unwanted character?