added @andreyknupp's useInternalErrors() option to XML parsing too, to allow invalid XML to be transformed