Re: [PHP] Trying to create and save a DOM XML file.

2004-06-23 Thread Matt Matijevich
[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.p

[PHP] Trying to create and save a DOM XML file.

2004-06-23 Thread Eric L. Sammons
I have created an XML, via php, and doing a dump_mem() everything looks as expected. Now I need to have it write to a file. I have found the function DOMDocument->save(); however, when used it appears that it is unknown. I believe this may be deprecated or because I am using domxml_new_doc()