Re: Warning: domdocument() expects at least 1 parameter
Posted by Iain Adams on 08/10/06 16:32
Try this again, dont think you noticed but u called the new DOMDocument
$dom instead of $doc;
JÿGius³ vs ::NRG::ius wrote:
> I tried to add version number of the instance document and his encoding
> but nothing................
> .......
> <?php
> //$doc = new DOMDocument();
> $dom = new DOMDocument('1.0', 'iso-8859-1');
> $doc->load('books.xml');
> echo $doc->saveXML();
> ?>