code: public void writeElementList(String tagName, Collection<String> listValues) {
          for (String listValue : listValues) {
              openTag(tagName);
              writeText(listValue);
              closeTag(tagName);
          }
      }
docs: Add a list of Strings to document as elements with given tag name to the
  tree.
  
  @param tagName
  the tag name
  @param listValues
  Collection of String values to add