code: public static XNElement parseXML(URL url) throws IOException, XMLStreamException {
          try (InputStream in = new BufferedInputStream(url.openStream())) {
              return parseXML(in);
          }
      }
docs: Parse an XML from the supplied URL.
  @param url the target URL
  @return the parsed XML
  @throws IOException if an I/O error occurs
  @throws XMLStreamException if a parser error occurs