3 Replies Latest reply on Nov 5, 2013 3:31 AM by Americo Pinto

    How to indent an exported xml file

    Americo Pinto Level 1

      hello,

       

      I want to export some xml file but well indented. Could you hlep me ?

       

      I find this "http://forums.adobe.com/thread/1323539?tstart=0" in our forum, but i want to apply the prettyPrinting at  the time of the exportfile.

       

      For help, the end lines of my script :

      " myCont = myWorkFolder + '/' + myExportNameFile + '_' + myPageName.threedigit() + '_' + myArticle.threeDigit() + '.cont.xml';

      myFileCont = new File (myCont );

      xmlElement.exportFile(ExportFormat.xml, myFileCont, false); "

       

      thanks