Using DOM object, how?

From: Date: Mon, 19 Sep 2005 07:31:10 +0000
Subject: Using DOM object, how?
Groups: php.general 
Request: Send a blank email to php-general+get-222632@lists.php.net to get a copy of this message
I was looking at the PHP DOM documentation here "http://www.php.net/manual/en/ref.dom.php" (which is rather sparse in the way of examples) and can't even get to square one. Here's an example from the php site: <?php $doc = DOMDocument::loadXML('<root><node/></root>'); echo $doc->saveXML(); $doc = new DOMDocument(); $doc->loadXML('<root><node/></root>'); echo $doc->saveXML(); ?> Problem is, it chokes on the first line with the error: Fatal error: Undefined class name 'domdocument' in /folder/dom_test.php on line 1 Anyone know how to use this thing? Thanks

« previous php.general (#222632) next »