code: public static Map<String, String> getAttributesFromXmlFile(File xmlFile) {
          if (xmlFile == null || !xmlFile.exists())
              return Collections.emptyMap();
  
          try (Reader reader = createReader(xmlFile)) {
              return getAttributesFromXmlReader(reader);
          }
          catch (IOException | RuntimeException e) {
              return Collections.emptyMap();
          }
      }
docs: Returns all the available attributes from the given XML file.
  @param xmlFile provided data file
  @return the available attributes in a map, maybe empty but never null