code: protected Element replaceOrAddElementText(Document doc, Element parent, String name, String content, List<String> beforeNames) {
          Element element = replaceOrAddElement(doc, parent, name, beforeNames);
          element.setTextContent(content);
          return element;
      }
docs: Creates new element as child of <code>parent</code> and sets its text content