title: DocumentBuilder.parse(InputStream) error - missing type
body: <p>I've been trying to make a discord bot for some time and I'm currently trying to user reddit's api to get an XML file. However, when I'm trying to parse to file, DocumentBuilder.parse(InputStream) Eclipse shows the following error.</p>
  
  <p>"The method parse(InputStream) from the type DocumentBuilder refers to the missing type InputStream"</p>
  
  <p>I've messed around a bit but I can't find a way to deal with it. I also haven't found any answers online after some thorough Googling.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>try {
          URL url = new URL(REDDIT_URL + URL);
          URLConnection connection = url.openConnection(); //not needed
  
          DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
          DocumentBuilder builder = factory.newDocumentBuilder();
          Document doc = builder.parse(url.openStream());
  
      } catch (IOException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
  </code></pre>
  
  <p>Thanks in advance!</p>