code: public static XElement parseXML(String fileName) throws XMLStreamException {
          try (InputStream in = new FileInputStream(fileName)) {
              return parseXML(in);
          } catch (IOException ex) {
              throw new XMLStreamException(ex);
          }
      }
docs: Parse an XML from the given local filename.
  @param fileName the file name
  @return az XElement object
  @throws XMLStreamException on error