DOMXML,PHP4 => PHP5

I have a script running on a server with PHP4 that uses DOMXML. Now I have to migrate the site (incl. the script) to a new server running PHP5 and it seems that DOMXML isn't working properly anymore. Is there an easy way to fix this?

Thanks.