Re: >> Very Simple PHP DOM Question..Please help!
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: >> Very Simple PHP DOM Question..Please help!

From: Tony Marston <tony@NOSPAM.demon.co.uk>
Date: Tue Jul 19 2005 - 11:02:22 CEST

<gene.ellis@gmail.com> wrote in message
news:1121726923.048590.65030@g49g2000cwa.googlegroups.com...
> ok I got it working! Thanks! One question though. When I look at the
> resulting XML file, it outputs everything in one long line. How can I
> insert newlines so that nodes are on different lines? Thank you!
>

Before the line
    $xml_doc->save($fname);
insert
    $xml_doc->formatOutput = true;

-- 
Tony Marston
http://www.tonymarston.net
Received on Mon Oct 17 21:10:39 2005