open (IN, "daten2.xml") or die "cannot open file : $!"; while () {    encode_entities;    print OUT; } close OUT or die $!; close IN or die $!;