You are here: Re: domxml->dump_file formats « PHP Programming Language « IT news, forums, messages
Re: domxml->dump_file formats

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация