Formatting XML output with line breaks
Hi,
I'm working on a project in which user data will be saved via php to an xml file on the sever. Using Kirupa's excellent tutorial (http://www.kirupa.com/web/xml/examples/simpleeditor.htm), I am able (now) to output to the xml file. My question is, does anyone know of a way to create the xml file so that the nodes will appear on seperate lines, as it would were I creating the XML file using Dreamweaver say.
IOW, is there a way to format the xml to look like this . . .
<Data>
<userInfo>
<firstName>Chris</firstName>
</userInfo>
</Data>
as opposed to this . . .
<Data><userInfo><firstName>Chris</firstName></userInfo></Data>
Each user entry will have a lto of information, and while I know I can parse it by loading it back inot Flash, it would be great to be able to more easily examine the XML file in Dreamweaver.
Thanks in advance for any help you can provide.
Best,
Chris
