in reply to Re^3: What regex changes are needed while creating xml
in thread [Solved]:What regex changes are needed while creating xml

Never redirect both from and to the same file at the same time: the file will be clobbered. Instead use the -i option to edit in place. Don't forget the trailing semicolon either.

perl -pi -e 's/\x08//g;' file1.xml