code: public static void updateType(Element element, CmsRelationType type) {
  
          updateAttribute(element, CmsLink.ATTRIBUTE_TYPE, type.getNameForXml());
      }
docs: Updates the type for a link xml element node.<p>
  
  @param element the link element node to update
  @param type the relation type to set