|
Posted by petersprc on 12/05/06 18:50
Hi,
The third parameter specifies whether the output should be formatted
neatly:
$doc->dump_file('my.xml', false, true);
>From the doc page
(http://us3.php.net/manual/en/function.domdocument-dump-file.php):
string DomDocument->dump_file ( string filename [, bool compressionmode
[, bool format]] )
Creates an XML document from the dom representation. This function
usually is called after building a new dom document from scratch as in
the example below. The format specifies whether the output should be
neatly formatted, or not. The first parameter specifies the name of the
filename and the second parameter, whether it should be compressed or
not.
CptDondo wrote:
> Does anyone know how to specify the format for the domxml->dump_file method?
>
> I am at a loss; my document is being dumped as one great big long line,
> and I want to insert line breaks and spaces so that it is human readable.
>
> --Yan
[Back to original message]
|