code: public static String endTag(String string)
      {
          if (string.indexOf(' ') != -1)
              string = string.substring(0, string.indexOf(' '));
          return "</" + string + '>';
      }
docs: Change this string to a XML end Text string.
  @param string The tag to enclose as an xml tag.
  @return The ending XML tag.