Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

: max(three, zero)?
(Example: nine)

The Note You're Voting On

jakob dot voss at nichtich dot de
19 years ago
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>";
?>

<< Back to user notes page

To Top