In my sample xml I've got a tag like this.
<ISAPPLICABLE> Applicable</ISAPPLICABLE>
While I was trying to create an XML in java, I tried to hardcode this.
public void addElement(Element parent, String elementName, String textContent){
Element el = document.createElement("ISAPPLICABLE");
el.setTextContent(" Applicable");
parent.appendChild(el);
}
But I get the result something like this.
<ISAPPLICABLE>&#4; Applicable</ISAPPLICABLE>
How can I get the desired output in xml?