This is a demo of how you can use php to generate html files from xml data using a template.
Visiting index.php from a server will render 12 html files inside output/ folder, one for each book element in demo.xml.
render.php and template.html are the only two files relevant to rendering, as well as a valid xml file. Both files would have to tailored to any specific use cases.