@Override
    public void endElement(String s, String s1, String element) throws SAXException {
        // if end of book element add to list
        if (element.equals("book")) {
            bookL.add(bookTmp);
        }
        if (element.equalsIgnoreCase("isbn")) {
            bookTmp.setIsbn(tmpValue);
        }
        if (element.equalsIgnoreCase("title")) {
            bookTmp.setTitle(tmpValue);
        }
        if (element.equalsIgnoreCase("author")) {
            bookTmp.getAuthors().add(tmpValue);
        }
        if (element.equalsIgnoreCase("price")) {
            bookTmp.setPrice(Integer.parseInt(tmpValue));
        }
        if (element.equalsIgnoreCase("regDate")) {
            try {
                bookTmp.setRegDate(sdf.parse(tmpValue));
            } catch (ParseException e) {
                System.out.println("date parsing error");
            }
        }
    }