code: public Text replaceWholeText(String content) throws DOMException {
  	Text oldText = text;
  	Document doc = XMLUtil.getDocument(text);
  	Text newText = doc.createTextNode(content);
  	Node parent = oldText.getParentNode();
  	parent.replaceChild(XMLCaster.toRawNode(newText), XMLCaster.toRawNode(oldText));
  	return oldText;
      }
docs: used only with java 7, do not set @Override