Extending DOMElement
Posted: Mon May 07, 2007 9:37 am
hi i have problem with DOM in PHP5. I extended the DOMElement Object with DOMXElement and then register it
with registerNodeClass("DOMElement", "DOMXElement") and this was ok but when i move the site to the hosting server i get this message:
Fatal error: Call to undefined method DOMDocument::registerNodeClass() in ...
so as i saw registerNodeClass is suported in: (PHP 5 >= 5.2.0), and my hosting server is 5.1.6 ..... ??? any solution there must be
some parameter to tell to DOM what class to use for creating new Elements....

with registerNodeClass("DOMElement", "DOMXElement") and this was ok but when i move the site to the hosting server i get this message:
Fatal error: Call to undefined method DOMDocument::registerNodeClass() in ...
so as i saw registerNodeClass is suported in: (PHP 5 >= 5.2.0), and my hosting server is 5.1.6 ..... ??? any solution there must be
some parameter to tell to DOM what class to use for creating new Elements....