I am using
JAVA SAX parser to parse a XML file and write the contents to a text file.My program is working fine and contents are retrieved correctly when the XML is small. But when the XML file size is large(around 1.5 mb) few bytes are missing / split in contents randomly.
public void characters(char[] char, int start, int length) throws SAXException {
String str = new String(char, start, length);
}
How can I over come this issue?