Under certain conditions, GML output can be created from inputs that contain illegal/invalid XML characters. An exception should be thrown rather than returning invalid XML.
Pull Request: https://github.com/geoserver/geoserver/pull/6364
Under certain conditions, GML output can be created from inputs that contain illegal/invalid XML characters. An exception should be thrown rather than returning invalid XML.