I have simplified the code to this:
<?php
error_reporting(E_ALL);
$xml = new DomDocument();
// $xml->load('library.xml');
?>
<html>
<head>
<title>XML Library</title>
</head>
<body>
<div>
<h2>Book Title</h2>
<p><b>Author:</b>: <?php //echo($author) ?></p>
<p><b>Categories:</b>: <?php //echo($catList) ?></p>
</div>
</body>
</html>
I have verified that the library.xml file is valid and in the same directory as the code.
When I uncomment the load instruction in line 4 the browser displays a blank page.