0 Replies Latest reply on Nov 20, 2008 2:24 AM by srakete

    get xmlTag from anchor character

    srakete Level 1
      Hi,
      I have selected an anchor which is a character and want to find out what xml-Element is associated with it. I have found a way by means of an insertionPoint like this:

      var myAnchorCharacter = app.selection[0];
      var myInsertionPoint = myAnchorCharacter.insertionPoints[0];
      var myAssociatedXmlElement = myInsertionPoint.associatedXMLElements[1];

      But isn't there an easier way, as the Indesign tags-panel shows the correct xmlTag rigth away. Thank Stefan