3 Replies Latest reply on Sep 7, 2013 8:06 AM by davidzweig

    Get all the XML elements in document with a given tag.

    davidzweig

      I have a document marked up with XML Tags. I want an array or collection of all the elements in the document with the tag "red."

       

      I've tried both of these functions, neither seem to work right:

       

      var redElements = myDocument.xmlElements.itemByName("red");

       

      var redElements = myDocument.xmlTags.itemByName("red").getElements();

       

      What is the correct way to do this?

       

      Many thanks.