Bookshelf is a project mainly written in Java, it's free.
Inventory a book collection in an XML document
This Java app transforms bookshelf.xml into a readable HTML document There is also a Swing GUI which allows the addition of new books to the XML