So I am pulling in this XML data using AS3 and storing it as myXML:
<Questions>
<id>1</id>
<question>
This is question 1.
</question>
</Questions>
<Questions>
<id>3</id>
<question>
This is question 3.
</question>
</Questions>
Now I want to check if an id is found within that XML. I am currently using this, but it always traces "NOT FOUND" -
for (var i: Number = 1; i < 3; i++) {
if (myXML.Questions.(@id == i).length() > 0) {
trace("FOUND")
} else {
trace("NOT FOUND");
}
}