2 Replies Latest reply on May 20, 2014 1:29 AM by Mani mohan

    how to autoflow the xml text

    Mani mohan

      how to import xml file into indesign and autoflow the text using javascriprt without template

        • 1. Re: how to autoflow the xml text
          ASHOK KUMAR Level 1



          Please Try this:


          var doc = app.documents.add();

          var xmlRoot = doc.xmlElements.item(0);

          xmlRoot.markupTag.name = "properties";

          with (doc.xmlImportPreferences){

            importToSelected = false;

            importStyle = XMLImportStyles.mergeImport;

            createLinkToXML = false;

            allowTransform = false;

            repeatTextElements = true;

            ignoreUnmatchedIncoming = false;

            importTextIntoTables = false;

            ignoreWhitespace = true;

            removeUnmatchedExisting = false;

            importCALSTables = true;


          xmlRoot.importXML(File(Folder.desktop + "/sample.xml"));

          • 2. Re: how to autoflow the xml text
            Mani mohan Level 1

            hi Ashok,


            thanks for giving the answer but xml file is imported the text is not autoflow in the document.