Call to undefined function domxml_new_doc means that there is no function called domxml_new_doc, which in turn means you can't call it.
Some functions are built into php, others require you to compile php on your own with certain options set. The documentation at php.net will tell you what is required in each case.
Considering that [man]domxml_new_doc[/man] states
Rather than just PHP >= 4.2.0 or PHP 4, PHP 5.
This means that unless you are running PHP 4, whose production cycle has ended = DON'T, you will not have access to any of the functions listed at [man]domxml[/man]. However, if you look at the menu in the left column, above DOM XML (PHP 4) is DOM, which doesn't have (PHP 4) next to it. Use that instead... Also note that when you look at any of the functions in [man]DOM[/man], it says (PHP 5) at the top of each of those pages.