Extending DOMElement

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bilgindemir2
Forum Newbie
Posts: 1
Joined: Mon May 07, 2007 9:33 am

Extending DOMElement

Post 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:
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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 ;))
Post Reply