Taking precaution against XXE.

https://www.owasp.org/index.php/XML_External_Entity_%28XXE%29_Processing