U can use xsl for rendering HTML from xml for generating pdf files from xml
u can browse www.sitraka.com site which provides tools to generate pdf files
by using that tools and any xml parsers i think u can generate pdf files.