title: parse method in DocumentBuilder is returning an error
body: <p>I am trying to use the <code>parse</code> method that takes an <code>InputSource</code> to parse a <code>DocumentBuilder</code> instance. </p>
  
  <p>The error is: </p>
  
  <blockquote>
    <p>The method parse(InputStream) in the type DocumentBuilder is not
    applicable for the arguments (InputSource)</p>
  </blockquote>
  
  <p>This is the code: </p>
  
  <pre><code>public static Document loadXMLFromString(String xml) throws Exception {
      DocumentBuilder factory = DocumentBuilderFactory.newInstance().newDocumentBuilder();
      Document doc = factory.parse(new InputSource(new StringReader(xml)));   
  }
  </code></pre>
  
  <p>It is asking me to change to <code>InputStream</code>.. Checked the documentation and one of the parse methods in <code>DocumentBuilder</code> takes an <code>InputSource</code>. What is the problem? </p>