Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
February 10, 2008, 11:36 am
rate this thread
When using the Save() and SaveXML() functions I am able to output xml
on a screen or save to file. The only issue is that I would prefer to
have it a bit more readable. For example:
This is better:
I have an idea involving lots of str_replace's - e.g.
str_replace("<person>", "\n <person>", $xml) - but thought Id check
to see if maybe an option or setting exists to do this. Obviously my
xml is a bit more complicated that the above so it would help as it is
for an external API so I want it to be easy to read. I had a look in
the PHP Docu and notice that there are options you can set in Save and
SaveXML but didnt seem to be any to do what I was after (or maybe I
just didnt understand them properly). Any help would be much