for my $para ( $root->children('para') ) { if ( $para->child_matches('get_this') ) { print $para->first_child('get_this')->att('value'); } }