9 Replies Latest reply on Feb 22, 2010 11:12 PM by Shonkyin

    Tags within a text selection...


      Hi everybody,

      Is there a way to know if a text selection contains any xml tag?

      I get a text object from a selection:

      var myDocument = app.activeDocument;
      var mySelection = myDocument.selection;
      var myText = mySelection[0];

      The only thing I can do is "myText.associatedXMLElements" to get the XML element in the XML structure... It gives first xml element.


      but I need to know which tags I have within my selection.


      Would be great a suggestion.