5 Replies Latest reply on Dec 30, 2016 2:09 AM by Oriup

    Select xml element in structure pane by javascript

    Oriup Level 1

      Dear All,


      Is it possible to select multiple xml elements with their names in structure pane with js?


      Below is my attachment:


      structure pane.PNG


      I have a script that select only one element, _p or _img. I need to select all tags except "Article" tags.


      var doc = app.activeDocument;
      var rt = doc.xmlElements[0];
      var _p = rt.xmlElements.item("_p");
      var _img = rt.xmlElements.item("_img");