More PHP and XML woes!

Hello Kirupans,

I’ve been going through some W3Schools articles and came across an example I could use.

[link] http://www.w3schools.com/php/php_ajax_xml.asp

I’m trying to build a “filter” for a large XML file. In my last post about PHP/XML woes, I needed help displaying the XML on a page (a list of cars). Now I’m working on building a filter that will narrow down the amount of cars shown on that page.

I’ve got all of the PHP, JS, and XML in place from the W3Schools example above, with no modifications to the code. When I run it on my local server I get:[INDENT]Warning: domdocument::domdocument() expects at least 1 parameter, 0 given in getcd.php on line 4

Fatal error: Call to undefined method domdocument::load() in getcd.phpon line **5
**[/INDENT]The two lines it is referring to are:

$xmlDoc = new DOMDocument();
$xmlDoc->load("cd_catalog.xml");

What seems to be the issue? The code is directly from the W3Schools site with no modifications.

Any help is greatly appreciated!