code: public static List<Language> getLanguages(String urlString) throws TvDbException {
          List<Language> languages = new ArrayList<>();
  
          NodeList nlLanguages;
          Node nLanguage;
          Element eLanguage;
  
          Document doc = DOMHelper.getEventDocFromUrl(urlString);
  
          if (doc != null) {
              nlLanguages = doc.getElementsByTagName(LANGUAGE);
  
              for (int loop = 0; loop < nlLanguages.getLength(); loop++) {
                  nLanguage = nlLanguages.item(loop);
  
                  if (nLanguage.getNodeType() == Node.ELEMENT_NODE) {
                      eLanguage = (Element) nLanguage;
                      languages.add(parseNextLanguage(eLanguage));
                  }
              }
          }
  
          return languages;
      }
docs: Gets the languages.
  
  @param urlString the url string
  @return the languages
  @throws TvDbException the tv db exception