use System.Xml class P def main settings = XmlReaderSettings() settings.xmlResolver = nil # this set-only property used to be problematic settings.prohibitDtd = false