Close, I adjusted it a bit for you, try this:
ini_set ("display_errors", "1");
error_reporting(E_ALL);
if(!empty($_GET['xml']) && isset($_GET['xml']))
{
$xml = $_GET['xml'];
$dom = new DOMDocument;
$dom->load('link.xml');
$xpath = new DOMXPath($dom);
$xpath->registerNamespace("php", "http://php.net/xpath");
$nodes = $xpath->query("/{$xml}/*");
echo "</pre>
<table border="'1'">title";
foreach ($nodes as $node)
{
echo "";
echo "" . $node->nodeValue . "";
echo "";
}
echo "</table>";<br>}<br>else<br>{<br> echo "You did not provide a value";<br>}<br><br>?&g