I neeed to convert a SimpleXML
object to a DOMDocument
, to use it with DOMXPath
. I need DOMXPath for it's method registerPHPFunctions
. Can this be done?
With dom_import_simplexml
I get a DOMElement
, not DOMDocument
.
I neeed to convert a SimpleXML
object to a DOMDocument
, to use it with DOMXPath
. I need DOMXPath for it's method registerPHPFunctions
. Can this be done?
With dom_import_simplexml
I get a DOMElement
, not DOMDocument
.