Re: [PHP-XML-DEV] generating xml
[email protected] (Adam Maccabee Trachtenberg) Thu, 8 Jul 2004 12:07:31 -0400 (EDT)
| Newsgroups | php.xml.dev |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 8 Jul 2004, jux wrote: > OK got it, but still it displayes and writes in one line. On that line: > $dom->dump_file($_SERVER["DOCUMENT_ROOT"]."/xml/test.xml" ,false ,true); > > i allso use the format=true parameter but still it comes in one row. Is > it because i use php4.3 not 5 or is there a mistake in my script? I don't know. I'd have to check. > Allso if his is in one row for server to read, it is not a big thing or > is it a bad style or something? It's not a "big" or "bad" thing, but it is a different XML document. In XML, whitespace *is* significant. Adding the formatting whitespace makes it easier to read, but does technically alter the document, so that's why these features aren't enabled by default. -adam -- [email protected] author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today!