2 Replies Latest reply on Feb 16, 2010 2:06 PM by Dr. TYPO

    determine XMLTags name of current selection

    Dr. TYPO Level 1

      Dear scripters,

       

      I'd like to find a way to alert the XMLTags name of the currently selected text or of the text where my cursor currently stands in.

       

      Something like this works:

      alert(app.activeDocument.xmlTags.item(0).name);

       

      The problem is, that the above sample is static and only shows the name of item(0).

       

      How can I fix this?

       

      By the way, where can I look up the XML tags syntax? Is there any literature or a syntax overview?

       

       

      Thanks for your help,

       

      TYPO