SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2006
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Extending DOMElement

    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....
    NOTELAY.COM - Have a nice noty day
    ETA CONSULTING

  2. #2
    SitePoint Enthusiast
    Join Date
    Sep 2006
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    or is there a way, to loop trough all the elements after the parser creates the document and then redefine the elements something like $elem = new DOMXelement($elem); or to asign the new methods with for loop ?
    NOTELAY.COM - Have a nice noty day
    ETA CONSULTING


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •