Question
Get all the XML elements in document with a given tag.
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.