This collection of
mini howtos is a dynamic copy of the
Unix Toolbox. This page extracts the XML content directly from the original XHTML DOM and displays only the requested node.
Source code here.
substituteEntities = true;
$dom->load('unixtoolbox.xhtml');
$xp = new DomXPath($dom);
$xp->registerNamespace('xhtml','http://www.w3.org/1999/xhtml');
// Print the revision number
$subject = $xp->query("//xhtml:meta[@name='subject']");
$copyright = $xp->query("//xhtml:meta[@name='copyright']");
echo $subject->item(0)->getAttribute("content") . "