pom.xml:
Код: Выделить всё
VALUE
Код: Выделить всё
@Parameter
private String param1;
Код: Выделить всё
VALUE
Базовый элемент «param1» не должен содержать дочерние элементы.
Поэтому я заключаю VALUE в блок CDATA:
Код: Выделить всё
VALUE
]]>
Код: Выделить всё
private void writeMetaInfo(MetaInfo metaInfo, Writer writer) throws IOException {
XmlMapper mapper = new XmlMapper();
new PrintWriter(writer, true).println("");
// metaInfo value is correct before writing - it has not <p>
mapper.writerWithDefaultPrettyPrinter().writeValue(writer, metaInfo);
}
Код: Выделить всё
<p>VALUE</p>Подробнее здесь: https://stackoverflow.com/questions/798 ... ite-to-xml
Мобильная версия