0 Replies Latest reply on Mar 18, 2013 11:00 PM by hurix@123


    hurix@123 Level 1



      My code is


      var myDoc = app.activeDocument;

      var inddRooElement = myDoc.xmlElements.item(0);

      var xPathElements = inddRooElement.evaluateXPathExpression("//div[@class='boxed-text']");

      var elementCount = xPathElements.length;

      for(var eId=0; eId<elementCount; eId++){

          var thisXpathElement = xPathElements[eId];

          var myObj = app.libraries[0].assets[0].placeAsset(myDoc)[0];

      var myAsset = myObj.assets.item("eId");



      I can not able to place the xmlElement into library item.


      kindly suggest me.