2 Replies Latest reply on Feb 9, 2010 1:06 PM by Chris McLaughlin

    Formatting XML with line breaks and indents

    Chris McLaughlin Level 1



      Previously I had posted a thread about trying to format and xml file with line breaks and indents when writing XML files using the xml.sendAndLoad method.  IOW, I was looking for a way to write the xml like this:








      as opposed to this:




      I thought I had solved this by converting the XML to a str in which the line breaks and indents were added in the appropriate places, but as yet I haven't been able to write it to an XML file.  I can write a text file using LoadVars, but this isn't useful as the formatting isn't preserved.


      Does anyone have an idea how I might write the xml.


      Thanks in advance.