in reply to Re: How to remove elements from XML data?
in thread How to remove elements from XML data?

I don't understand how you use this. $xref->{node} = [grep { $_->{val} != 2; } @{$xref->{node}}];
which module you are using??
Maxim