Map  map = new  LinkedHashMap();
List<Book> list = new ArrayList<Book>();
for ( Iterator i = root.elementIterator( "book" ); i.hasNext(); ) {
Book book=new Book();
Element foo = (Element) i.next();
            book.setBookId(foo.attributeValue("bookId"));
            book.setBookName(foo.attributeValue("bookName"));
            Double price =Double.parseDouble(foo.attributeValue("bookPrice"));
            book.setBookPrice(price);
            book.setBookAuthor(foo.attributeValue("bookAuthor"));
            book.setDescription(foo.attributeValue("description"));
            map.put(i,book);
        }
return map;