You'd want what amounts to 'innerHTML', which PHP's dom doesn't directly support. One workaround for it is here in the PHP docs.
Another option is to take the $node
you've found, insert it as the top-level element of a new DOM document, and then call saveHTML()
on that new document.