quad xml to book prototype