2 Replies Latest reply on Jul 26, 2013 2:39 PM by timberjava

    Listing out names of elements in an XML tree using XML Rules in ExtendScript

    timberjava

      This is probably staring me right in the face, but I am not having success.

       

      I have a simple XML tree where tags have the content of the paragraph (I mapped styles to tags).

       

      I want to traverse this two level tree and grab the names of the elements (NOT the content) to list out in a dialog box.

      o Big Book

         o ChapterTag "My Chapter 1"

            o SubChapterTag "My Sub Chapter 1"

         o ChapterTag "My Chapter 2"

      ... and so on

       

      Using XML Rules, I want to load the element names into an array of strings, ignoring their content (I can retrieve that easily).

       

      Can I get a nudge here on how to get the name of the element out as a string?  THANKS!