2 Replies Latest reply on Dec 7, 2015 3:28 AM by sarfrazm7834471

    How to Read XML file in InDesign Script

    sarfrazm7834471 Level 1

      #target indesign

       

      var myFile = File.openDialog("Select XML file");

      if(myFile != null)

      {      myFile.open("r");

              var myElement = new XML(myFile.read());

              myFile.close();        

              alert(myElement.xmlElements.length);      

      }

       

      ---------------------------------------------------------

      Above code is not getting XML Elements, variable myElement getting all xml-file data,

      but I am not getting its child elements....

      Can anyone help me to solve this problem Please.....

      Thanks...