I’ve a XMLList like:
<parent>
<one>
<child id="1" />
<child id="2" />
</one>
<two>
<child id="3" />
<child id="4" />
</two>
</parent>
And I want to do something like this:
trace(_LIST._loc_1.child[0].@id);
Where the _loc_1 would be “one” or “two”.
Is this possible with the getDefinitionByName() to do this?
getDefinitionByNamewill not help you here, use onlysquare bracket []to get the node you want using it’s name :Working example based on your question: