You can transform the result nodes into new DOMDocument objects this way:
<?php
$result = $xpath->query($query);
$resultNode = $result->item(0);
$newDom = new DOMDocument;
$newDom->appendChild($newDom->importNode($resultNode,1));
print "<pre>" . htmlspecialchars($newDom->saveXML()) . "</pre>";
?>