I try to create org.w3c.dom.Element
which will contains both xml makr up and plain text
I need to get as a result something like this
<aff id="aff1"><label>2</label>Laboratories for Human Nutrition and</aff>
but I only get this
<aff id="aff1"><label>2</label>Laboratories for Human Nutrition and</aff>
This code create aff
xml node
Element aff = document.createElement("aff");
aff.setAttribute("id", "aff" + reference.id);
aff.setTextContent("<label>" + reference.label + "</label>" + reference.value);
Maybe there are some way to create dummy xml node for text only, which does not have tag, but allow to set its text content?