Consider using XML_1_1_REPLACEMENT mode for XStream PrettyPrintWriter
Author: sephiroth-jCreated Sep 29, 2026Updated Sep 30, 2026
What feature do you want to see added?
An issue regarding the serialization of characters not allowed in XML 1.1 was reported in the dependency-track-plugin (jenkinsci/dependency-track-plugin#467). Xstream 1.4.21 provides a replacement mode for such situations (see x-stream/xstream#335). I suggest using this mode to ensure that the XML output by PrettyPrintWriter is always valid XML 1.1.
Upstream changes
No response
Are you interested in contributing this feature?
No response
Source: jenkinsci/jenkins