code: public String getXmlFormatted(Map<String, String> dataMap) {
          StringBuilder sb = new StringBuilder();
          for (String var : outTemplate) {
              sb.append(appendXmlStartTag(var));
              sb.append(dataMap.get(var));
              sb.append(appendXmlEndingTag(var));
          }
          return sb.toString();
      }
docs: Given an array of variable names, returns an Xml String
  of values.
  
  @param dataMap an map containing variable names and their corresponding values
  names.
  @param dataMap
  @return values in Xml format