After modify the code as below it worked fine...
public void startElement(String uri, String localName, String qName,
Attributes attributes) throws SAXException {
if(qName.equalsIgnoreCase("customerName")){
chars.setLength(0);
}
tmpValue = null;
}
public void characters(char[] ac, int i, int j) throws SAXException {
chars.append(ac, i, j);
if (tmpValue == null) {
tmpValue = new String(ac, i, j);
} else {
tmpValue += new String(ac, i, j);
}
}
public void endElement(String s, String s1, String element) throws SAXException {
if (element.equalsIgnoreCase("transactionDate") && tmpValue != null) {
obj.setTransactionDate(tmpValue.trim());
}
}