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?
Is there a function to do this, or should I just loop through all the elements in the document and test them to see if they have the right tag?
var myRedElements=myRoot.evaluateXPathExpression("//red"); // myRedElements is now an array
That works great. Thanks!