0 Replies Latest reply on Nov 2, 2012 9:49 AM by Conyip72

    import XML with javascript prior to loading in indesign?

    Conyip72

      I am creating a solution that will import xml into a indesign document(template) that has 6 different master pages, each new page used in the main document is created from (the corresponding Master) and the second pair of tags in the XML File:

      <root>

      <ad_size1>

      <conent1></content1>

      <conent2></content2>

      <conent3></content3>

      </ad_size1>

      <ad_size2>

      <conent1></content1>

      <conent2></content2>

      <conent3></content3>

      </ad_size2>

      </root>

       

      how can i load the XML into an array prior to loading the xml into indesign. as i need to be able to to use a switch/case and a for loop to cycle through the array, creating pages.

      any ideas would be fantastic.

       

      Keith