2 Replies Latest reply on Apr 24, 2012 12:42 PM by bduffy323

    Retrieving tags and corresponding text within textFrame


      I have a text frame that looks like this:



      starting with a reference to the pageitem, I want to be able to get a list of the tag names and the text that corresponde to them. In this example the red tag is "text1" the green tag is "text2" and the blue tag is "text3" so I would like:


      text1 -> somewhere

      text2 -> over the rainbow

      text3 -> way up high


      The only way I have been able to access the tags and values is by  parsing the structure xml but I have found that xml is pretty slow in indesign and since I already have a reference to the object when I need to know the tags I just assumed there should be an easier way.



      Thanks for the help, hope I was descriptive enough.