Hello Iñaki,
SAP has immensely improved the XML validation feature in the later versions of PI and i believe it's certainly worth to use xml validation along with alert mechanism to validate input file message instead of replicating the same req. using custom ways.
Thanks
Amit Srivastava