Hardening/xml validate script

### Description
New version of the XML checker script.