code: public Element createDefaultXml(CmsObject cms, I_CmsXmlDocument document, Element root, Locale locale) {
  
          Iterator<I_CmsXmlSchemaType> i = m_typeSequence.iterator();
          while (i.hasNext()) {
              I_CmsXmlSchemaType type = i.next();
              for (int j = 0; j < type.getMinOccurs(); j++) {
                  Element typeElement = type.generateXml(cms, document, root, locale);
                  // need to check for default value again because of the appinfo "mappings" node
                  I_CmsXmlContentValue value = type.createValue(document, typeElement, locale);
                  String defaultValue = document.getHandler().getDefault(cms, value, locale);
                  if (defaultValue != null) {
                      // only if there is a default value available use it to overwrite the initial default
                      value.setStringValue(cms, defaultValue);
                  }
              }
          }
  
          return root;
      }
docs: Generates the default XML content for this content definition, and append it to the given root element.<p>
  
  Please note: The default values for the annotations are read from the content definition of the given
  document. For a nested content definitions, this means that all defaults are set in the annotations of the
  "outer" or "main" content definition.<p>
  
  @param cms the current users OpenCms context
  @param document the OpenCms XML document the XML is created for
  @param root the node of the document where to append the generated XML to
  @param locale the locale to create the default element in the document with
  
  @return the default XML content for this content definition, and append it to the given root element