Re: generating xml

From: Date: Thu, 08 Jul 2004 16:07:31 +0000
Subject: Re: generating xml
References: 1 2 3  Groups: php.xml.dev 
Request: Send a blank email to php-xml-dev+get-413@lists.php.net to get a copy of this message
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 -- adam@trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today!

« previous php.xml.dev (#413) next »