How can you tell if an XMLlist object in AS3 contains a specific node? For ex: you have this XML file
<items>
<item>one</items>
</items>
And want to check if in this file exists a child with tag <pp>
?
How can you tell if an XMLlist object in AS3 contains a specific node? For ex: you have this XML file
<items>
<item>one</items>
</items>
And want to check if in this file exists a child with tag <pp>
?
used this simple code which worked:
if ("pp" in XMLlist) {
trace("exist");
}