code: private static String getText(Element element) {
      if (element.getFirstChild() == null) {
        return "";
      }
      return ((Text) element.getFirstChild()).getData().trim();
    }
docs: Get the text inside of the Xml element
  @param element xml element
  @return the text inside of the xml element