code: public static XElement parseXML(URL u) throws XMLStreamException, IOException {
          try (InputStream in = u.openStream()) {
              return parseXML(in);
          }
      }
docs: Parses an XML from the given URL.
  @param u the url
  @return the parsed XML
  @throws XMLStreamException on error
  @throws IOException on error