JENKINS-8855: Malformed XML in API due to slash in element tag name http://issues.jenkins-ci.org/browse/JENKINS-8855
as the problem is apparently pretty simple - XML encoding.
A git branch name i.e. origin/master is written as a tag - <origin/master> - which is not valid XML. Apparently all that needs to be done is to escape the name, but I am unsure how to do that. It seems that objects are automatically serialized to XML/JSon in Hudson, so any pointers towards documentation or the serializer classes themselves would be appreciated.