vsespb has asked for the wisdom of the Perl Monks concerning the following question:

Seems XML::Simple cannot be used for XML from untrusted source (see here and here )
Looking for some way to pre-process/validate XML to make sure that XXE is not used there, before feeding it to XML::Simple, and it's ok for me to use another XML module for that purpose (The other possible way to drop XML::Simple and just use that another module, but I don't want to rewrite whole code to use new API/data structures).