note 75086 modified in function.simplexml-element-asXML by danbrown
| From: | danbrown@php.net | Date: | Wed, 16 Sep 2009 15:41:53 +0000 |
| Subject: | note 75086 modified in function.simplexml-element-asXML by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-160650@lists.php.net to get a copy of this message | ||
If your xml has already got a "\n" (new line) straight after the opening root tag, then
the layout of the rest of the saveXML() will all be on one line, regardless of if you've set
formatOutput to true. it's taken me about an hour to figure this out, and i hope this helps
someone.
--was--
Just a note to add onto the previous note: if your xml has already got a "\n" (new line)
straight after the opening root tag, then the layout of the rest of the saveXML() will all be on one
line, regardless of if you've set formatOutput to true. it's taken me about an hour to
figure this out, and i hope this helps someone.
http://php.net/manual/en/function.simplexml-element-asXML.php