code: public static void updateXmlForVfsFile(CmsLink link, Element element) {
  
          // if element is not null
          if (element != null) {
              // update the type attribute
              updateAttribute(element, CmsLink.ATTRIBUTE_TYPE, link.getType().getNameForXml());
              // update the sub-elements
              updateXml(link, element, false);
          }
      }
docs: Updates the given xml element with this link information.<p>
  
  @param link the link to get the information from
  @param element the &lt;link&gt; element to update