Invalid XML Character During Unmarshall

拜拜、爱过 提交于 2019-12-05 02:35:45
JMelnik

I think the main problem is about escaping illegal characters during marshalling. Something similar was mentioned here, you could try it out.

It offers to change encoding to Unicode marshaller.setProperty("jaxb.encoding", "Unicode");

The Unicode character U+001A is illegal in XML 1.0:

The encoding used to represent it does not matter in this case, it's simply not allowed in XML content.

XML 1.1 allows some of the restricted characters (including U+001A) to be included, but they must be present as numeric character references ()

Wikipedia has a nice summary of the situation.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!