0 Replies Latest reply on Dec 16, 2008 9:31 AM by Emanuele Radaelli

    Tags within a text selection...

    Emanuele Radaelli Level 1
      (JavaScript - CS3 - Mac)

      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... but I need to know which tags I have within my selection.

      Would be great a suggestion.

      Thanks anticipately!