Re: Trying to create and save a DOM XML file.
| From: | Matt Matijevich | Date: | Wed, 23 Jun 2004 15:13:33 +0000 |
| Subject: | Re: Trying to create and save a DOM XML file. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-188880@lists.php.net to get a copy of this message | ||
[snip]
So I have:
$doc->save("/tmp/test.xml");
This does not work....
Thoughts?
[/snip]
you have this in your previous email $doc->dump_mem() . Just do this
$file = $doc->dump_mem();
then write $file to a file.
there is also this
http://www.php.net/manual/en/function.domdocument-dump-file.php