code: public static String findTitle(final String xml) {
          // Convert the string to a document to make it easier to get the proper title
          Document doc = null;
          try {
              doc = XMLUtilities.convertStringToDocument(xml);
          } catch (Exception ex) {
              LOG.debug("Unable to convert String to a DOM Document", ex);
          }
  
          return findTitle(doc);
      }
docs: Finds the first title element in a DocBook XML file.
  
  @param xml The docbook xml file to find the title from.
  @return The first title found in the xml.