Reputation: 5092
I might be missing something obvious, but how do you turn a DOMDocument
into a DOMNode
, in PHP?
Upvotes: 1
Views: 66
Reputation: 24551
A DOMDocument
already is a DOMNode
(see documentation):
DOMDocument extends DOMNode
It represents the root node as well as the document itself.
Upvotes: 1