Add a XmlParser class with security checks for XML external entities attacks