Page 1 of 1

Extending DOMElement

Posted: Mon May 07, 2007 9:37 am
by bilgindemir2
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....

:roll:

Posted: Mon May 07, 2007 9:54 am
by volka
If there already was such a function why would they have added registerNodeClass in php 5.2.0?
(in other words: no, there isn't ;))