code: protected void appendXMLContent(StringBuffer msg) {
  
          // append header from xmlcontent
          msg.append(
              CmsMacroResolver.resolveMacros(m_mailContent.getStringValue(m_cms, "Header", m_locale), m_macroResolver));
  
          // append body
          msg.append("\n<br/><br/>\n");
          msg.append(generateHtmlMsg());
          msg.append("\n<br/><br/>\n");
  
          // append footer from xmlcontent
          msg.append(
              CmsMacroResolver.resolveMacros(m_mailContent.getStringValue(m_cms, "Footer", m_locale), m_macroResolver));
      }
docs: Append XMLContent to StringBuffer.<p>
  
  @param msg StringBuffer