Hi Pipi Li,i´am not 100% sure but i thing you can use something like
this check the value all type of your tree
:$data.resolveNodes('RootNode.item[*].Type') .item(*).value; // i thing
for every item, it should return his value then you can check this value
; if ....,item(*).value == "A".Arthur