code: public Element createLocale(CmsObject cms, I_CmsXmlDocument document, Element root, Locale locale) {
  
          // add an element with a "locale" attribute to the given root node
          Element element = root.addElement(getInnerName());
          element.addAttribute(XSD_ATTRIBUTE_VALUE_LANGUAGE, locale.toString());
  
          // now generate the default XML for the element
          return createDefaultXml(cms, document, element, locale);
      }
docs: Generates a valid locale (language) element for the XML schema of this content definition.<p>
  
  @param cms the current users OpenCms context
  @param document the OpenCms XML document the XML is created for
  @param root the root node of the document where to append the locale to
  @param locale the locale to create the default element in the document with
  
  @return a valid XML element for the locale according to the XML schema of this content definition