unless(defined $idTag->first_child('Id')) { print "ID-tag leer\n"; }