Well, you have a single output file, C:\xmlperl\output.txt, so the code outputs everything to it.
You need to open a new output file for each input file.
From the tag name 'Texte' I suspect you might run into encoding problems, so you might need to open the output file in utf8 mode.
You may also want to read a bit about modern Perl style, bareword filehandles (XMLOUT), indirect object notation (new XML::Twig) and opendir/readir are not used a lot these days.
Oops, there's an extra , that should not be there: